fix find_citizen_opinions_by_target_id if json is empty
This commit is contained in:
@@ -24,6 +24,10 @@ begin
|
||||
ol.name
|
||||
limit 100
|
||||
) as t;
|
||||
|
||||
if (resource is null) then
|
||||
resource = '[]'::json;
|
||||
end if;
|
||||
end;
|
||||
$$;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user