Fix search functionality

- remove unused line that allows for an empty array of author_not.id_in
This commit is contained in:
Matt Rider 2019-08-26 17:51:44 +02:00
parent 9f6757f409
commit b990a1055b
2 changed files with 1 additions and 2 deletions

View File

@ -35,7 +35,7 @@ export default {
},
findPosts: async (object, params, context, resolveInfo) => {
params = await filterForBlockedUsers(params, context)
return neo4jgraphql(object, params, context, resolveInfo, false)
return neo4jgraphql(object, params, context, resolveInfo, true)
},
PostsEmotionsCountByEmotion: async (object, params, context, resolveInfo) => {
const session = context.driver.session()

View File

@ -13,7 +13,6 @@ type Query {
WHERE score >= 0.2
AND NOT user.deleted = true AND NOT user.disabled = true
AND NOT post.deleted = true AND NOT post.disabled = true
AND NOT user.id in COALESCE($filter.author_not.id_in, [])
RETURN post
LIMIT $limit
"""