mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 18:06:14 +03:00
Fix data type of notification.isDefault
and notification.active
(#1765)
This commit is contained in:
parent
81d5360520
commit
fdbdf83a0d
1 changed files with 4 additions and 1 deletions
|
@ -22,7 +22,10 @@ async function sendNotificationList(socket) {
|
|||
]);
|
||||
|
||||
for (let bean of list) {
|
||||
result.push(bean.export());
|
||||
let notificationObject = bean.export();
|
||||
notificationObject.isDefault = (notificationObject.isDefault === 1);
|
||||
notificationObject.active = (notificationObject.active === 1);
|
||||
result.push(notificationObject);
|
||||
}
|
||||
|
||||
io.to(socket.userID).emit("notificationList", result);
|
||||
|
|
Loading…
Reference in a new issue