(config: any)
| 94 | } |
| 95 | |
| 96 | async saveConfig(config: any) { |
| 97 | Schema.intersect(this.settings)(config); |
| 98 | const value = yaml.dump(config); |
| 99 | await this.ctx.db.collection('system').updateOne({ _id: 'config' }, { $set: { value } }, { upsert: true }); |
| 100 | await this.loadConfig(); |
| 101 | } |
| 102 | |
| 103 | async _actualMigrate(schema: Schema<any>) { |
| 104 | const processNode = async (path: string[], node: Schema<any, any>) => { |
no test coverage detected