mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-07 17:01:23 +08:00
improve testing notification response
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user