From c93ae90578a0fec44bb5eb11f7a1db5f4dcc8fd9 Mon Sep 17 00:00:00 2001 From: keyan Date: Thu, 1 Jun 2023 14:54:44 -0500 Subject: [PATCH] remove extra note checking condition --- api/resolvers/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/resolvers/user.js b/api/resolvers/user.js index d77480b5..bbe0caf8 100644 --- a/api/resolvers/user.js +++ b/api/resolvers/user.js @@ -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)