From e330875c801d279f5dc46b3873a8a9b14af75249 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Thu, 9 Sep 2021 20:22:32 +0800 Subject: [PATCH] fix restore fail if no isDefault --- server/notification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/notification.js b/server/notification.js index 1e1e0ccd..b2d9d581 100644 --- a/server/notification.js +++ b/server/notification.js @@ -93,7 +93,7 @@ class Notification { bean.name = notification.name; bean.user_id = userID; bean.config = JSON.stringify(notification); - bean.is_default = notification.isDefault; + bean.is_default = notification.isDefault || false; await R.store(bean) if (notification.applyExisting) {