Fixes in the controllers

This commit is contained in:
Br0wnHammer committed 2025-06-20 20:42:57 +05:30
1 parent a9c1d131a5
commit faa2a2d965
3 files changed
+4 -5

No files matched your search

+2 -2
View File
@@ -159,7 +159,7 @@ const getChecksByTeam = async ({
status,
}) => {
try {
status = status === "true" ? true : false;
status = status === "true";
page = parseInt(page);
rowsPerPage = parseInt(rowsPerPage);
const matchStage = {
@@ -274,7 +274,7 @@ const updateAllChecksStatus = async (id, status, target) => {
try {
const updatedChecks = await Check.updateMany(
target === "monitor" ? { monitorId: id } : { teamId: id },
{ $set: { status: true } }
{ $set: { status } }
);
return updatedChecks.modifiedCount;
} catch (error) {