related serverices to TS
This commit is contained in:
1 parent
cf67c82f5e
commit
ed80837810
6 files changed
+162
-114
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { IMonitorsRepository } from "@/repositories/index.js";
|
||||
import type { MonitorType } from "@/types/index.js";
|
||||
|
||||
const SERVICE_NAME = "checkService";
|
||||
|
||||
@@ -35,6 +36,8 @@ class CheckService {
|
||||
return CheckService.SERVICE_NAME;
|
||||
}
|
||||
|
||||
buildCheck = async (statusResponse: any, type: MonitorType) => {};
|
||||
|
||||
getChecksByMonitor = async ({ monitorId, query, teamId }: { monitorId: string; query: any; teamId: string }) => {
|
||||
if (!monitorId) {
|
||||
throw this.errorService.createBadRequestError("No monitor ID in request");
|
||||
|
||||
Reference in new issue
Block a user