Try this a different way

This commit is contained in:
Essem 2022-02-22 09:20:52 -06:00
parent bc9eb12b5a
commit 27215598f9
No known key found for this signature in database
GPG Key ID: 7D497397CC3A2A8C
1 changed files with 3 additions and 3 deletions

6
app.js
View File

@ -150,9 +150,9 @@ if (isMaster) {
error: "red"
});
(async () => {
if (await database.upgrade(logger)) return process.exit(1);
})();
database.upgrade(logger).then(result => {
if (result === 1) return process.exit(1);
});
Admiral.on("log", (m) => logger.main(m));
Admiral.on("info", (m) => logger.info(m));