switch on the notification, if it is added in EditMonitor.vue

This commit is contained in:
LouisLam
2021-09-09 21:24:29 +08:00
parent 7a4432de1e
commit 573c7faddd
4 changed files with 21 additions and 5 deletions

View File

@@ -527,12 +527,13 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
try {
checkLogin(socket)
await Notification.save(notification, notificationID, socket.userID)
let notificationBean = await Notification.save(notification, notificationID, socket.userID)
await sendNotificationList(socket)
callback({
ok: true,
msg: "Saved",
id: notificationBean.id,
});
} catch (e) {