Fix: clear important beats after deleteMonitor

This commit is contained in:
Nelson Chan 2021-09-23 23:21:08 +08:00
parent 3fb06a8ba4
commit 32c9dfbb31
2 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,7 @@ class Database {
R.freeze(true);
await R.autoloadModels("./server/model");
await R.exec("PRAGMA foreign_keys = ON");
// Change to WAL
await R.exec("PRAGMA journal_mode = WAL");
await R.exec("PRAGMA cache_size = -12000");

View File

@ -637,6 +637,8 @@ exports.entryPage = "dashboard";
});
await sendMonitorList(socket);
// Clear heartbeat list on client
await sendImportantHeartbeatList(socket, monitorID, true, true);
} catch (e) {
callback({