Add switch for filter

This commit is contained in:
Alex Holliday
2024-08-09 09:41:39 -07:00
parent 21ba8f087a
commit 2bd8371d6a

View File

@@ -43,6 +43,20 @@ const getChecksCount = async (req) => {
if (filter !== undefined) {
checksQuery.status = false;
switch (filter) {
case "all":
console.log("all");
break;
case "down":
console.log("down");
break;
case "resolve":
console.log("resolve");
break;
default:
console.log("default");
break;
}
}
const count = await Check.countDocuments(checksQuery);