mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
fix anomaly
This commit is contained in:
@@ -3,13 +3,13 @@ import { model, Schema, Types } from 'mongoose';
|
|||||||
|
|
||||||
export type TAnomalyEvents = {
|
export type TAnomalyEvents = {
|
||||||
project_id: Schema.Types.ObjectId
|
project_id: Schema.Types.ObjectId
|
||||||
eventDate: string,
|
eventDate: Date,
|
||||||
created_at: Date
|
created_at: Date
|
||||||
}
|
}
|
||||||
|
|
||||||
const AnomalyEventsSchema = new Schema<TAnomalyEvents>({
|
const AnomalyEventsSchema = new Schema<TAnomalyEvents>({
|
||||||
project_id: { type: Types.ObjectId, required: true },
|
project_id: { type: Types.ObjectId, required: true },
|
||||||
eventDate: { type: String, required: true },
|
eventDate: { type: Date, required: true },
|
||||||
created_at: { type: Date, required: true },
|
created_at: { type: Date, required: true },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user