diff options
author | Starfall <us@starfall.systems> | 2022-11-15 10:14:58 -0600 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2022-11-15 10:14:58 -0600 |
commit | c3c3b6953f37462f26f011b6c6cbd1655d5dcbea (patch) | |
tree | ac2977065332e268fa1a8c583d4ac07898ae3f04 | |
parent | efa1bd9451c2aac68ce4576abdbbcdc266291f0f (diff) | |
parent | eb675af0fb0d73b697e066100c4faf066c0baff7 (diff) |
Merge remote-tracking branch 'glitch/main'
-rw-r--r-- | streaming/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/index.js b/streaming/index.js index 53a790ea0..cecb53ed5 100644 --- a/streaming/index.js +++ b/streaming/index.js @@ -690,7 +690,7 @@ const startWorker = async (workerId) => { } if (!unpackedPayload.filtered && !req.cachedFilters) { - queries.push(client.query('SELECT filter.id AS id, filter.phrase AS title, filter.context AS context, filter.expires_at AS expires_at, filter.action AS filter_action, keyword.keyword AS keyword, keyword.whole_word AS whole_word FROM custom_filter_keywords keyword JOIN custom_filters filter ON keyword.custom_filter_id = filter.id WHERE filter.account_id = $1 AND filter.expires_at IS NULL OR filter.expires_at > NOW()', [req.accountId])); + queries.push(client.query('SELECT filter.id AS id, filter.phrase AS title, filter.context AS context, filter.expires_at AS expires_at, filter.action AS filter_action, keyword.keyword AS keyword, keyword.whole_word AS whole_word FROM custom_filter_keywords keyword JOIN custom_filters filter ON keyword.custom_filter_id = filter.id WHERE filter.account_id = $1 AND (filter.expires_at IS NULL OR filter.expires_at > NOW())', [req.accountId])); } Promise.all(queries).then(values => { |