refactoring

This commit is contained in:
Alex Holliday committed 2026-01-12 22:58:46 +00:00
1 parent e090d3cfd3
commit 7a6b0d5da4
19 files changed
+699 -116

No files matched your search

@@ -1,5 +1,5 @@
import MonitorStats from "../../db/models/MonitorStats.js";
import Check from "../../db/models/Check.js";
import { CheckModel } from "@/db/models/index.js";
const SERVICE_NAME = "StatusService";
class StatusService {
@@ -115,7 +115,7 @@ class StatusService {
if (!check._id) {
try {
const checkModel = new Check(check);
const checkModel = new CheckModel(check);
savedCheck = await checkModel.save();
this.buffer.removeCheckFromBuffer(check);