update services/repositories to reflect new monitorstatus type

This commit is contained in:
Alex Holliday committed 2026-02-11 19:22:35 +00:00
1 parent d622bce6c1
commit 94afe19b37
7 files changed
+24 -30

No files matched your search

@@ -181,7 +181,13 @@ class MongoMonitorsRepository implements IMonitorsRepository {
{
$set: {
isActive: { $not: "$isActive" },
status: "$$REMOVE",
status: {
$cond: {
if: { $eq: ["$status", "paused"] },
then: "initializing",
else: "paused",
},
},
},
},
],