chore: append getDb inoto context

This commit is contained in:
Chareice 2023-12-29 08:56:47 +08:00
parent b3a3457e88
commit c0c19983e2
No known key found for this signature in database

View File

@ -735,6 +735,7 @@ export class Application<StateT = DefaultState, ContextT = DefaultContext> 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;