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,
|
type: Date,
|
||||||
required: true,
|
required: true,
|
||||||
get: dateFormatBackend,
|
get: dateFormatBackend,
|
||||||
min: new Date(),
|
min: nowInTz(),
|
||||||
},
|
},
|
||||||
endDate: {
|
endDate: {
|
||||||
type: Date,
|
type: Date,
|
||||||
required: false,
|
required: false,
|
||||||
get: dateFormatBackend,
|
get: dateFormatBackend,
|
||||||
min: new Date(),
|
min: nowInTz(),
|
||||||
},
|
},
|
||||||
days: {
|
days: {
|
||||||
type: [String],
|
type: [String],
|
||||||
|
|||||||
Reference in New Issue
Block a user