From dd46f61ecc4cc4fb435471fd3947f332569737e5 Mon Sep 17 00:00:00 2001 From: Collin Duncan <3679940+cgduncan7@users.noreply.github.com> Date: Sat, 21 Jan 2023 16:01:38 +0100 Subject: [PATCH] Updating SQL for saving reservation to DB --- src/common/reservation.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/reservation.ts b/src/common/reservation.ts index 8884cf0..4cfda95 100644 --- a/src/common/reservation.ts +++ b/src/common/reservation.ts @@ -131,7 +131,7 @@ export class Reservation { ` INSERT INTO reservations ( - id + id, username, password, date_range_start, @@ -154,8 +154,8 @@ export class Reservation { res.id, res.user.username, res.user.password, - res.dateRange.start, - res.dateRange.end, + res.dateRange.start.format('YYYY-MM-DD HH:mm:ss'), + res.dateRange.end.format('YYYY-MM-DD HH:mm:ss'), res.opponent.id, res.opponent.name, ]