From 928d6b3d4e0401bd3c1a3000d0bf40d9ac97e88a Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Tue, 22 Sep 2020 00:25:23 +0200 Subject: [PATCH] fix typing error --- db/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/index.ts b/db/index.ts index f346217..3704c05 100644 --- a/db/index.ts +++ b/db/index.ts @@ -64,7 +64,7 @@ export async function createBooking({ 'days', new mongoose.Error.ValidatorError({ message: `${doubleBookedDays - .map(dateFormatFrontend) + .map((dateString) => dateFormatFrontend(new Date(dateString))) .join(', ')} schon gebucht`, }) )