From c0c19983e270beac6818ff09bcc3189b12556984 Mon Sep 17 00:00:00 2001 From: Chareice Date: Fri, 29 Dec 2023 08:56:47 +0800 Subject: [PATCH] chore: append getDb inoto context --- 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 8eb814ae8a..cb99adb38e 100644 --- a/packages/core/server/src/application.ts +++ b/packages/core/server/src/application.ts @@ -735,6 +735,7 @@ export class Application exten this._cli = this.createCli(); this._i18n = createI18n(options); this.context.db = this.getDb(); + this.context.getDb = this.getDb; // this.context.logger = this._logger; this.context.resourcer = this._resourcer;