update services/repositories to reflect new monitorstatus type
This commit is contained in:
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",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user