Fix typo in SQL query.

Fixes #284.
This commit is contained in:
D. Berge
2023-10-28 12:06:42 +02:00
parent 9a3cf7997e
commit 9a2fdeab0e

View File

@@ -25,7 +25,6 @@ async function list (projectId, opts = {}) {
WHERE
($1::numeric IS NULL OR sequence = $1) AND
($2::numeric[] IS NULL OR sequence = ANY( $2 )) AND
($3::timestamptz IS NULL OR date(tstamp) = $3) AND
($3::timestamptz IS NULL OR
(($4::timestamptz IS NULL AND date(tstamp) = $3) OR
date(tstamp) BETWEEN SYMMETRIC $3 AND $4)) AND