mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
apply same for min in schema dates
This commit is contained in:
@@ -49,13 +49,13 @@ const BookingSchema = new mongoose.Schema<BookingDocument>(
|
||||
type: Date,
|
||||
required: true,
|
||||
get: dateFormatBackend,
|
||||
min: new Date(),
|
||||
min: nowInTz(),
|
||||
},
|
||||
endDate: {
|
||||
type: Date,
|
||||
required: false,
|
||||
get: dateFormatBackend,
|
||||
min: new Date(),
|
||||
min: nowInTz(),
|
||||
},
|
||||
days: {
|
||||
type: [String],
|
||||
|
||||
Reference in New Issue
Block a user