Compare commits

..

1 commit

Author SHA1 Message Date
DC
d27f0349e5
Merge fafa1a78ee into 778363a948 2024-11-11 10:08:57 +00:00

View file

@ -220,9 +220,6 @@ module.exports.statusPageSocketHandler = (socket) => {
// Delete groups that are not in the list
log.debug("socket", "Delete groups that are not in the list");
if (groupIDList.length === 0) {
await R.exec("DELETE FROM `group` WHERE status_page_id = ?", [ statusPage.id ]);
} else {
const slots = groupIDList.map(() => "?").join(",");
const data = [
@ -230,7 +227,6 @@ module.exports.statusPageSocketHandler = (socket) => {
statusPage.id
];
await R.exec(`DELETE FROM \`group\` WHERE id NOT IN (${slots}) AND status_page_id = ?`, data);
}
const server = UptimeKumaServer.getInstance();