mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 21:10:23 +00:00
refactor: logger bind (#577)
This commit is contained in:
@@ -27,7 +27,7 @@ export class NTQQGroupApi {
|
||||
this.core = core;
|
||||
}
|
||||
async initApi() {
|
||||
this.initCache().then().catch(this.context.logger.logError.bind(this.context.logger));
|
||||
this.initCache().then().catch(e => this.context.logger.logError(e));
|
||||
}
|
||||
async initCache() {
|
||||
this.groups = await this.getGroups();
|
||||
|
||||
Reference in New Issue
Block a user