fix restore fail if no isDefault

This commit is contained in:
LouisLam 2021-09-09 20:22:32 +08:00
parent 331ae5ec20
commit e330875c80

View File

@ -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) {