From 0d492e94f4ca31ab89d53be290533c53dff48700 Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 23 Jun 2024 22:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=97=B6=E9=80=9A=E7=9F=A5=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/services/user.ts b/back/services/user.ts index 74a95c67..80408cc4 100644 --- a/back/services/user.ts +++ b/back/services/user.ts @@ -351,7 +351,7 @@ export default class UserService { public async getNotificationMode(): Promise { const doc = await this.getDb({ type: AuthDataType.notification }); - return doc.info as NotificationInfo; + return (doc.info || {}) as NotificationInfo; } private async updateAuthDb(payload: SystemInfo): Promise {