fix typing error

This commit is contained in:
Thomas Ruoff
2020-09-22 00:25:23 +02:00
committed by Thomas Ruoff
parent 02c2b45747
commit 928d6b3d4e

View File

@@ -64,7 +64,7 @@ export async function createBooking({
'days', 'days',
new mongoose.Error.ValidatorError({ new mongoose.Error.ValidatorError({
message: `${doubleBookedDays message: `${doubleBookedDays
.map(dateFormatFrontend) .map((dateString) => dateFormatFrontend(new Date(dateString)))
.join(', ')} schon gebucht`, .join(', ')} schon gebucht`,
}) })
) )