mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
fix restore fail if no isDefault
This commit is contained in:
parent
331ae5ec20
commit
e330875c80
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue