Fix the condition in streaming listener (#6008)

pull/6009/head
nullkal 2017-12-13 21:42:16 +09:00 committed by Eugen Rochko
parent ad75ec8b5b
commit 90e7da16a0
1 changed files with 1 additions and 1 deletions

View File

@ -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)),
];