From a9d614700c43f91cc61802df76cd3658998af020 Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 14 Nov 2022 17:48:53 +0800 Subject: [PATCH] fix: add db auth before version check --- packages/core/server/src/application.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/server/src/application.ts b/packages/core/server/src/application.ts index 4a50db825..6109f4936 100644 --- a/packages/core/server/src/application.ts +++ b/packages/core/server/src/application.ts @@ -362,6 +362,7 @@ export class Application 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],