aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/danger/clean/cleaner.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-07-30 14:54:31 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-07-31 11:32:04 +0200
commitf0af38e69677d1afe17e48b3f5267128db3db1a4 (patch)
tree98dd8c4ac07e7d77e0c46407e50a5b0f6aaecc43 /scripts/danger/clean/cleaner.ts
parent7abb5c5da1ed7c6945e81b9e3da0a14f623f69ea (diff)
downloadPeerTube-f0af38e69677d1afe17e48b3f5267128db3db1a4.tar.gz
PeerTube-f0af38e69677d1afe17e48b3f5267128db3db1a4.tar.zst
PeerTube-f0af38e69677d1afe17e48b3f5267128db3db1a4.zip
Fix lint
Diffstat (limited to 'scripts/danger/clean/cleaner.ts')
-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 })