From df97bfcd478f1bf90ce9181b603913511bdcdc46 Mon Sep 17 00:00:00 2001 From: Collin Duncan 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 ?; `,