Compare commits

..

1 commit

Author SHA1 Message Date
Louis Lam
f7cb75105e
Merge df2f76dbe3 into 778363a948 2024-11-11 10:08:56 +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();