fix: unhandled promise rejection error on reset error

Also, removed buildAll() on reset.
v1.18.x
Julian Lam 5 years ago
parent 366ad5cd69
commit 510737726c

@ -84,12 +84,11 @@ exports.reset = async function (options) {
/* eslint-disable no-await-in-loop */
await task();
}
winston.info('[reset] Reset complete');
await require('../meta/build').buildAll();
winston.info('[reset] Reset complete. Please run `./nodebb build` to rebuild assets.');
process.exit(0);
} catch (err) {
winston.error('[reset] Errors were encountered during reset -- ' + err.message);
throw err;
process.exit(1);
}
};

Loading…
Cancel
Save