Ack Field in Checks

This commit is contained in:
Br0wnHammer committed 2025-06-23 22:07:03 +05:30
1 parent faa2a2d965
commit 30d85e5712
6 files changed
+42 -26

No files matched your search

+4 -8
View File
@@ -119,9 +119,9 @@ class CheckController {
try {
const { checkId } = req.params;
const { status } = req.body;
const { ack } = req.body;
const updatedCheck = await this.db.updateCheckStatus(checkId, status);
const updatedCheck = await this.db.updateCheckStatus(checkId, ack);
return res.success({
msg: this.stringService.checkUpdateStatus,
@@ -143,13 +143,9 @@ class CheckController {
try {
const { monitorId, target } = req.params;
const { status } = req.body;
const { ack } = req.body;
const updatedChecks = await this.db.updateAllChecksStatus(
monitorId,
status,
target
);
const updatedChecks = await this.db.updateAllChecksStatus(monitorId, ack, target);
return res.success({
msg: this.stringService.checkUpdateStatus,