fix find_citizen_opinions_by_target_id if json is empty

This commit is contained in:
2020-03-22 00:43:09 +01:00
parent ddea05aea0
commit 479793503c

View File

@@ -24,6 +24,10 @@ begin
ol.name ol.name
limit 100 limit 100
) as t; ) as t;
if (resource is null) then
resource = '[]'::json;
end if;
end; end;
$$; $$;