Reject revoked access_token on Streaming API. (#3367)

lolsob-rspec
Clworld 2017-05-28 06:27:54 +09:00 committed by Eugen Rochko
parent ff78d90621
commit 2f10e05e24
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ if (cluster.isMaster) {
return;
}
client.query('SELECT oauth_access_tokens.resource_owner_id, users.account_id, users.filtered_languages FROM oauth_access_tokens INNER JOIN users ON oauth_access_tokens.resource_owner_id = users.id WHERE oauth_access_tokens.token = $1 LIMIT 1', [token], (err, result) => {
client.query('SELECT oauth_access_tokens.resource_owner_id, users.account_id, users.filtered_languages FROM oauth_access_tokens INNER JOIN users ON oauth_access_tokens.resource_owner_id = users.id WHERE oauth_access_tokens.token = $1 AND oauth_access_tokens.revoked_at IS NULL LIMIT 1', [token], (err, result) => {
done();
if (err) {