fix: add db auth before version check

This commit is contained in:
chenos 2022-11-14 17:48:53 +08:00
parent 534faa85cb
commit a9d614700c

View File

@ -362,6 +362,7 @@ export class Application<StateT = DefaultState, ContextT = DefaultContext> exten
}
async runAsCLI(argv = process.argv, options?: ParseOptions) {
await this.db.auth({ retry: 30 });
await this.dbVersionCheck({ exit: true });
await this.load({
method: argv?.[2],