auth service
This commit is contained in:
1 parent
e5ef14215f
commit
e2b012fdde
5 files changed
+77
-9
No files matched your search
@@ -143,6 +143,10 @@ class MongoMonitorRepository implements IMonitorRepository {
|
||||
};
|
||||
|
||||
// Deletions
|
||||
deleteAll = async () => {
|
||||
const deleted = await Monitor.deleteMany({});
|
||||
return deleted.acknowledged;
|
||||
};
|
||||
deleteById = async (monitorId: string, teamId: string) => {
|
||||
await Monitor.deleteOne({ _id: monitorId, teamId });
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user