From 24a1b1bb8ed1472fc15b19b14f1d6db512abfa14 Mon Sep 17 00:00:00 2001 From: sabonerune <102559104+sabonerune@users.noreply.github.com> Date: Thu, 1 Feb 2024 12:13:17 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A8=AD=E5=AE=9A=E3=81=8C=E5=A3=8A?= =?UTF-8?q?=E3=82=8C=E3=82=8B=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=20(#1814)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/shared/ConfigManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, }),