mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 10:51:07 +08:00
fix restore fail if no isDefault
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user