mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
fix anomaly
This commit is contained in:
@@ -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<TAnomalyEvents>({
|
||||
project_id: { type: Types.ObjectId, required: true },
|
||||
eventDate: { type: String, required: true },
|
||||
eventDate: { type: Date, required: true },
|
||||
created_at: { type: Date, required: true },
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user