diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-04 15:15:17 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-04 15:15:17 +0900 |
| commit | 0e1f858dfdd28bc898f6951a0989980a78d9a45d (patch) | |
| tree | eaef0aa8cc59b44feba8a80dbc5039c27d3171a6 /cli | |
| parent | :v: (diff) | |
| download | sharkey-0e1f858dfdd28bc898f6951a0989980a78d9a45d.tar.gz sharkey-0e1f858dfdd28bc898f6951a0989980a78d9a45d.tar.bz2 sharkey-0e1f858dfdd28bc898f6951a0989980a78d9a45d.zip | |
:v:
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/clean-drive.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cli/clean-drive.js b/cli/clean-drive.js index 35766f9a34..1d61c5ccc3 100644 --- a/cli/clean-drive.js +++ b/cli/clean-drive.js @@ -32,7 +32,7 @@ async function main() { if (file == null) return skip(); - log(chalk`{gray ${i}} scanning: {bold ${file._id}} ...`); + log(chalk`{gray ${i}} scanning {bold ${file._id}} ${file.filename} ...`); const attachingUsersCount = await User.count({ $or: [{ @@ -60,9 +60,9 @@ async function main() { promise.then(([i, file, deleted]) => { if (deleted) { - log(chalk`{gray ${i}} {red deleted: {bold ${file._id}}}`); + log(chalk`{gray ${i}} {red deleted: {bold ${file._id}} ${file.filename}}`); } else { - log(chalk`{gray ${i}} {green skipped: {bold ${file._id}}}`); + log(chalk`{gray ${i}} {green skipped: {bold ${file._id}} ${file.filename}}`); } log.clear(); console.log(); @@ -75,4 +75,6 @@ async function main() { return await sequential(promiseGens); } -main().then().catch(console.error); +main().then(() => { + console.log('done'); +}).catch(console.error); |