remove extra note checking condition
This commit is contained in:
parent
c4b96b998f
commit
c93ae90578
|
@ -292,7 +292,7 @@ export default {
|
||||||
"Item".created_at >= p.created_at
|
"Item".created_at >= p.created_at
|
||||||
AND ${user.noteAllDescendants ? '"Item".path <@ p.path' : '"Item"."parentId" = p.id'}
|
AND ${user.noteAllDescendants ? '"Item".path <@ p.path' : '"Item"."parentId" = p.id'}
|
||||||
AND "Item"."userId" <> $1
|
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
|
AND "Item".created_at > $2::timestamp(3) without time zone
|
||||||
${await filterClause(me, models)}
|
${await filterClause(me, models)}
|
||||||
LIMIT 1`, me.id, lastChecked)
|
LIMIT 1`, me.id, lastChecked)
|
||||||
|
|
Loading…
Reference in New Issue