mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-26 02:51:08 -04:00
improve testing notification response
This commit is contained in:
parent
d6b9403f60
commit
9ca2444dab
2 changed files with 65 additions and 40 deletions
|
@ -440,11 +440,16 @@ let needSetup = false;
|
|||
try {
|
||||
checkLogin(socket)
|
||||
|
||||
let res = await Notification.send(notification, notification.name + " Testing")
|
||||
let msg = await Notification.send(notification, notification.name + " Testing")
|
||||
|
||||
callback(res);
|
||||
callback({
|
||||
ok: true,
|
||||
msg
|
||||
});
|
||||
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
|
||||
callback({
|
||||
ok: false,
|
||||
msg: e.message
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue