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;