Browse Source

Merge pull request #464 from chakflying/fix-delete-monitor

Fix: clear important beats after deleteMonitor
pull/511/head
Louis Lam 3 years ago
committed by GitHub
parent
commit
fbc8828ddc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      server/database.js
  2. 2
      server/server.js

1
server/database.js

@ -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");

2
server/server.js

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

Loading…
Cancel
Save