server format

This commit is contained in:
Alex Holliday committed 2026-01-13 20:20:29 +00:00
1 parent 117a2e00c4
commit e79bf28bdc
4 files changed
+16 -24

No files matched your search

+2 -8
View File
@@ -1,8 +1,5 @@
import { Schema, model, Types } from "mongoose";
import {
MonitorTypes,
type MonitorType,
} from "@/types/monitor.js";
import { MonitorTypes, type MonitorType } from "@/types/monitor.js";
import type {
Check,
CheckAudits,
@@ -25,10 +22,7 @@ type CheckMetadataDocument = Omit<CheckMetadata, "monitorId" | "teamId"> & {
type: MonitorType;
};
type CheckDocumentBase = Omit<
Check,
"id" | "metadata" | "expiry" | "ackAt" | "createdAt" | "updatedAt"
> & {
type CheckDocumentBase = Omit<Check, "id" | "metadata" | "expiry" | "ackAt" | "createdAt" | "updatedAt"> & {
metadata: CheckMetadataDocument;
expiry: Date;
ackAt?: Date | null;