Fix type error

This commit is contained in:
Alex Gleason 2023-08-09 01:28:38 -05:00
parent 9671a77bee
commit 55c957d10b
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ function getFilterQuery<K extends number = number>(filter: Filter<K>) {
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);