« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/cli.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/cli.js b/src/util/cli.js
index 77711566..7f84be7c 100644
--- a/src/util/cli.js
+++ b/src/util/cli.js
@@ -195,7 +195,7 @@ export function progressPromiseAll(msgOrMsgFn, array) {
     let done = 0, total = array.length;
     process.stdout.write(`\r${msgFn()} [0/${total}]`);
     const start = Date.now();
-    return Promise.all(array.map(promise => promise.then(val => {
+    return Promise.all(array.map(promise => Promise.resolve(promise).then(val => {
         done++;
         // const pc = `${done}/${total}`;
         const pc = (Math.round(done / total * 1000) / 10 + '%').padEnd('99.9%'.length, ' ');