File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import { ApplicationAuthGuard } from 'src/auth/application.auth.guard'
22
22
import { ResponseUtil } from 'src/utils/response'
23
23
import { BundleService } from 'src/region/bundle.service'
24
24
import { BucketService } from 'src/storage/bucket.service'
25
+ import { DomainState } from '@prisma/client'
25
26
26
27
@ApiTags ( 'WebsiteHosting' )
27
28
@ApiBearerAuth ( 'Authorization' )
@@ -61,6 +62,12 @@ export class WebsiteController {
61
62
return ResponseUtil . error ( 'bucket not found' )
62
63
}
63
64
65
+ if ( bucket . websiteHosting ?. state === DomainState . Deleted ) {
66
+ return ResponseUtil . error (
67
+ 'The previous website is deleting, please try again later.' ,
68
+ )
69
+ }
70
+
64
71
if ( bucket . websiteHosting ) {
65
72
return ResponseUtil . error ( 'bucket already binded as website hosting' )
66
73
}
You can’t perform that action at this time.
0 commit comments