banned cross device check
This commit is contained in:
+1
-1
@@ -937,7 +937,7 @@ function createApp({
|
||||
item.deviceId === deviceId && item.notificationId === notificationId
|
||||
);
|
||||
if (!exists) {
|
||||
return { success: true, notificationId, deleted: 0, idempotent: true };
|
||||
return { success: false, errMsg: "Panel 通知不存在" };
|
||||
}
|
||||
database.panelNotifications = database.panelNotifications.filter((item) =>
|
||||
!(item.deviceId === deviceId && item.notificationId === notificationId)
|
||||
|
||||
Reference in New Issue
Block a user