fix: set _ready to true

pull/243/head
Josh Moore 1 year ago
parent 2d4db02d22
commit d0e5711f65

@ -85,7 +85,10 @@ export class MySql {
// Hopefully we are ready
if (tablesExist.files && tablesExist.users)
log.info('MySQL', 'Tables exist, ready').callback(resolve(void 0));
log.info('MySQL', 'Tables exist, ready').callback(() => {
MySql._ready = true;
resolve(void 0)
});
else throw new Error('Table(s) missing!');
}
} catch (err) {

Loading…
Cancel
Save