Skip to content
Snippets Groups Projects
Commit 90e7da16 authored by nullkal's avatar nullkal Committed by Eugen Rochko
Browse files

Fix the condition in streaming listener (#6008)

parent ad75ec8b
No related branches found
No related tags found
No related merge requests found
......@@ -346,7 +346,7 @@ const startWorker = (workerId) => {
return;
}
if (!req.accountId) {
if (req.accountId) {
const queries = [
client.query(`SELECT 1 FROM blocks WHERE (account_id = $1 AND target_account_id IN (${placeholders(targetAccountIds, 2)})) OR (account_id = $2 AND target_account_id = $1) UNION SELECT 1 FROM mutes WHERE account_id = $1 AND target_account_id IN (${placeholders(targetAccountIds, 2)})`, [req.accountId, unpackedPayload.account.id].concat(targetAccountIds)),
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment