Changing fetchByDate query to use the date of the reservation

This commit is contained in:
Collin Duncan 2023-02-10 15:17:58 +01:00
parent 76b887faba
commit 462a163082
No known key found for this signature in database

View file

@ -254,7 +254,7 @@ export class Reservation {
` `
SELECT * SELECT *
FROM reservations FROM reservations
WHERE DATE('now', '-7 day') = ? WHERE DATE(date_range_start, '-7 day') = ?
ORDER BY date_range_start DESC ORDER BY date_range_start DESC
LIMIT ?; LIMIT ?;
`, `,