We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6869aee commit 476c1f9Copy full SHA for 476c1f9
src/baas/cdn/index.js
@@ -205,7 +205,13 @@ class Cdn {
205
206
// need circle for deleting, after domain status is 6, then we can delete it
207
console.log(`Start removing CDN for ${domain}`)
208
- const { Status } = await getCdnByDomain(this.capi, domain)
+ const detail = await getCdnByDomain(this.capi, domain)
209
+ if (!detail) {
210
+ console.log(`CDN domain ${domain} not exist`)
211
+ return {}
212
+ }
213
+
214
+ const { Status } = detail
215
216
if (Status === 'online') {
217
// disable first
0 commit comments