remove extra note checking condition

This commit is contained in:
keyan 2023-06-01 14:54:44 -05:00
parent c4b96b998f
commit c93ae90578
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ export default {
"Item".created_at >= p.created_at
AND ${user.noteAllDescendants ? '"Item".path <@ p.path' : '"Item"."parentId" = p.id'}
AND "Item"."userId" <> $1
WHERE (p."userId" = $1 OR p.id = ANY(SELECT "itemId" FROM "ThreadSubscription" WHERE "userId" = $1))
WHERE p."userId" = $1
AND "Item".created_at > $2::timestamp(3) without time zone
${await filterClause(me, models)}
LIMIT 1`, me.id, lastChecked)