implement delete cascade

This commit is contained in:
Alex Holliday committed 2025-06-10 09:49:53 +08:00
1 parent f41709bd12
commit 711e85cb6e
3 files changed
+42 -48

No files matched your search

-3
View File
@@ -414,9 +414,6 @@ class AuthController {
(await Promise.all(
result.monitors.map(async (monitor) => {
await this.jobQueue.deleteJob(monitor);
await this.db.deleteChecks(monitor._id);
await this.db.deletePageSpeedChecksByMonitorId(monitor._id);
await this.db.deleteNotificationsByMonitorId(monitor._id);
})
));