improve testing notification response

This commit is contained in:
LouisLam
2021-07-18 20:49:46 +08:00
parent d6b9403f60
commit 9ca2444dab
2 changed files with 65 additions and 40 deletions

View File

@@ -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