Compare commits

..

1 commit

Author SHA1 Message Date
Luke Thomas
15db934c64
Merge 5b0d17459e into 778363a948 2024-11-11 15:35:42 +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();