From caf637072784ec54d209762d90f6e50a169e99e4 Mon Sep 17 00:00:00 2001 From: Collin Duncan <3679940+cgduncan7@users.noreply.github.com> Date: Fri, 10 Feb 2023 14:54:47 +0100 Subject: [PATCH] Converting date function from MySQL to SQLite syntax --- 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 9b38367..802927a 100644 --- a/src/common/reservation.ts +++ b/src/common/reservation.ts @@ -254,7 +254,7 @@ export class Reservation { ` SELECT * FROM reservations - WHERE DATE_FORMAT(DATE_SUB(date_range_start, INTERVAL 7 DAY), '%Y-%m-%d) = ? + WHERE DATE(?, '-7 day') = ? ORDER BY date_range_start DESC LIMIT ?; `,