remove old expiry field, remove vestigal checks

This commit is contained in:
Alex Holliday committed 2026-03-10 10:33:18 -07:00
1 parent 6ad0a6a29d
commit cadf68740a
5 files changed
+9 -21

No files matched your search

+2 -6
View File
@@ -21,9 +21,8 @@ type CheckMetadataDocument = Omit<CheckMetadata, "monitorId" | "teamId"> & {
type: MonitorType;
};
type CheckDocumentBase = Omit<Check, "id" | "metadata" | "expiry" | "createdAt" | "updatedAt"> & {
type CheckDocumentBase = Omit<Check, "id" | "metadata" | "createdAt" | "updatedAt"> & {
metadata: CheckMetadataDocument;
expiry: Date;
createdAt: Date;
updatedAt: Date;
};
@@ -223,10 +222,7 @@ const CheckSchema = new Schema<CheckDocument>(
message: {
type: String,
},
expiry: {
type: Date,
default: Date.now,
},
cpu: {
type: cpuSchema,
default: () => ({}),