fix find_citizen_opinions_by_target_id if json is empty
This commit is contained in:
@@ -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;
|
||||||
$$;
|
$$;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user