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