only check tips and votes for notifications

This commit is contained in:
keyan 2022-05-18 11:43:37 -05:00
parent cef8a33267
commit dea34e0b93
1 changed files with 1 additions and 0 deletions

View File

@ -197,6 +197,7 @@ export default {
WHERE "ItemAct"."userId" <> $1
AND "ItemAct".created_at > $2
AND "Item"."userId" = $1
AND "ItemAct".act IN ('VOTE', 'TIP')
LIMIT 1`, me.id, lastChecked)
if (votes.length > 0) {
return true