#42 Add tests to ArticleVoter

Refactor ArticleVoter
This commit is contained in:
2020-03-16 03:46:31 +01:00
parent aa7ca26b51
commit ca78db4155
8 changed files with 271 additions and 87 deletions

View File

@@ -14,7 +14,7 @@ begin
from (
select
z.*,
json_build_object('id', z.user_id) as "user"
find_user_by_id(z.user_id) as "user"
from citizen as z
where "search" is null or (
(name->'first_name')::text ilike '%'||"search"||'%' or