From 462a1630823fd74ff9d53a378bd48b3fdc48cf02 Mon Sep 17 00:00:00 2001 From: Collin Duncan <3679940+cgduncan7@users.noreply.github.com> Date: Fri, 10 Feb 2023 15:17:58 +0100 Subject: [PATCH] Changing fetchByDate query to use the date of the reservation --- src/common/reservation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/reservation.ts b/src/common/reservation.ts index ae717b4..077ed61 100644 --- a/src/common/reservation.ts +++ b/src/common/reservation.ts @@ -254,7 +254,7 @@ export class Reservation { ` SELECT * FROM reservations - WHERE DATE('now', '-7 day') = ? + WHERE DATE(date_range_start, '-7 day') = ? ORDER BY date_range_start DESC LIMIT ?; `,