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 {