feat: Add configurable response data storage for notifications (#6684)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Dmitry
2026-01-12 18:39:12 +01:00
committed by GitHub
co-authored by autofix-ci[bot] Frank Elsinga Copilot
parent 034b8641c8
commit 751fe1bbf5
12 changed files with 322 additions and 6 deletions
+4 -2
View File
@@ -87,10 +87,12 @@ async function sendImportantHeartbeatList(socket, monitorID, toUser = false, ove
timeLogger.print(`[Monitor: ${monitorID}] sendImportantHeartbeatList`);
const result = list.map((bean) => bean.toJSON());
if (toUser) {
io.to(socket.userID).emit("importantHeartbeatList", monitorID, list, overwrite);
io.to(socket.userID).emit("importantHeartbeatList", monitorID, result, overwrite);
} else {
socket.emit("importantHeartbeatList", monitorID, list, overwrite);
socket.emit("importantHeartbeatList", monitorID, result, overwrite);
}
}