From 4fdaa0da4ed168d7322de066d3ca230d3382a3e3 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 6 Oct 2022 13:13:23 +0200 Subject: [PATCH] Update backend/src/schema/resolvers/helpers/filterInvisiblePosts.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Wolfgang Huß --- backend/src/schema/resolvers/helpers/filterInvisiblePosts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/schema/resolvers/helpers/filterInvisiblePosts.js b/backend/src/schema/resolvers/helpers/filterInvisiblePosts.js index 108f9c007..73dfaad91 100644 --- a/backend/src/schema/resolvers/helpers/filterInvisiblePosts.js +++ b/backend/src/schema/resolvers/helpers/filterInvisiblePosts.js @@ -13,7 +13,7 @@ const getInvisiblePosts = async (context) => { cypher = ` MATCH (post:Post)-[:IN]->(group:Group) WHERE NOT group.groupType = 'public' - RETURN collect(post.id) AS invisiblePostIds` + RETURN collect(post.id) AS invisiblePostIds` } const invisiblePostIdsResponse = await transaction.run(cypher, { userId: user ? user.id : null,