aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/danger/clean
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/danger/clean')
-rw-r--r--scripts/danger/clean/cleaner.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/danger/clean/cleaner.ts b/scripts/danger/clean/cleaner.ts
index 2d5366a91..69e8a63a0 100644
--- a/scripts/danger/clean/cleaner.ts
+++ b/scripts/danger/clean/cleaner.ts
@@ -14,7 +14,7 @@ initDatabaseModels(true)
14 console.info('Tables of %s deleted.', CONFIG.DATABASE.DBNAME) 14 console.info('Tables of %s deleted.', CONFIG.DATABASE.DBNAME)
15 15
16 const STORAGE = CONFIG.STORAGE 16 const STORAGE = CONFIG.STORAGE
17 Promise.mapSeries(Object.keys(STORAGE), storage => { 17 return Promise.mapSeries(Object.keys(STORAGE), storage => {
18 const storageDir = STORAGE[storage] 18 const storageDir = STORAGE[storage]
19 19
20 return new Promise((res, rej) => { 20 return new Promise((res, rej) => {
@@ -28,3 +28,7 @@ initDatabaseModels(true)
28 }) 28 })
29 .then(() => process.exit(0)) 29 .then(() => process.exit(0))
30 }) 30 })
31 .catch(err => {
32 console.error(err)
33 process.exit(-1)
34 })