From e4e2c2a42a2b8004b6baeb455c380a55f696baae Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 16 Sep 2024 20:09:07 +0200 Subject: [PATCH] fix anomaly --- shared/schema/anomalies/AnomalyEventsSchema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }, })