diff --git a/shared/schema/anomalies/AnomalyEventsSchema.ts b/shared/schema/anomalies/AnomalyEventsSchema.ts index 8cb2622..b0f5348 100644 --- a/shared/schema/anomalies/AnomalyEventsSchema.ts +++ b/shared/schema/anomalies/AnomalyEventsSchema.ts @@ -3,13 +3,13 @@ import { model, Schema, Types } from 'mongoose'; export type TAnomalyEvents = { project_id: Schema.Types.ObjectId - eventDate: string, + eventDate: Date, created_at: Date } const AnomalyEventsSchema = new Schema({ project_id: { type: Types.ObjectId, required: true }, - eventDate: { type: String, required: true }, + eventDate: { type: Date, required: true }, created_at: { type: Date, required: true }, })