add search by terms on posts

This commit is contained in:
João Victor Geonizeli
2022-02-28 13:45:28 -03:00
parent aa0e1ac1c7
commit a08a889e7d
5 changed files with 16 additions and 8 deletions

View File

@@ -17,6 +17,10 @@ class PostsQueryResolverService
scope = scope.by_user_follows(current_user)
end
if filter[:terms]
scope = scope.by_terms(filter[:terms])
end
scope
end
end