From 55c957d10be0dca74903983fd97b21e79d5e8287 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 9 Aug 2023 01:28:38 -0500 Subject: [PATCH] Fix type error --- src/db/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/events.ts b/src/db/events.ts index 32d8aeb..5f38cc0 100644 --- a/src/db/events.ts +++ b/src/db/events.ts @@ -62,7 +62,7 @@ function getFilterQuery(filter: Filter) { if (key.startsWith('#')) { const tag = key.replace(/^#/, ''); const value = filter[key as `#${string}`] as string[]; - query = query + return query .leftJoin('tags', 'tags.event_id', 'events.id') .where('tags.tag', '=', tag) .where('tags.value_1', 'in', value);