diff --git a/src/shared/ConfigManager.ts b/src/shared/ConfigManager.ts index e037e6e148..1fe0eb5381 100644 --- a/src/shared/ConfigManager.ts +++ b/src/shared/ConfigManager.ts @@ -188,8 +188,8 @@ export abstract class BaseConfigManager { } private _save() { - this.lock.acquire(lockKey, () => { - this.save({ + this.lock.acquire(lockKey, async () => { + await this.save({ ...configSchema.parse({ ...this.config, }),