fix: migrateOneBotConfigsV1

This commit is contained in:
pk5ls20
2024-11-16 07:22:29 +08:00
parent 282c7418e9
commit cbc79fd51e
2 changed files with 40 additions and 36 deletions

View File

@@ -64,7 +64,8 @@ export class NapCatOneBot11Adapter {
this.core = core;
this.context = context;
this.configLoader = new OB11ConfigLoader(core, pathWrapper.configPath);
this.configLoader.save(mergeOneBotConfigs(migrateOneBotConfigsV1(this.configLoader.configData)));
this.configLoader.save(migrateOneBotConfigsV1(this.configLoader.configData));
this.configLoader.save(mergeOneBotConfigs(this.configLoader.configData));
this.apis = {
GroupApi: new OneBotGroupApi(this, core),
UserApi: new OneBotUserApi(this, core),