feature #4: create procedure for citizen
This commit is contained in:
@@ -5,7 +5,7 @@ declare
|
||||
begin
|
||||
select
|
||||
case when count(u) = 1
|
||||
then to_json(json_populate_record(null::user_lite, to_json(u))) -- TODO refactor this !
|
||||
then to_jsonb(u) - 'password'
|
||||
else null end
|
||||
into resource
|
||||
from "user" as u
|
||||
|
||||
@@ -9,4 +9,4 @@ begin
|
||||
end;
|
||||
$$;
|
||||
|
||||
-- drop procedure if exists find_user_by_id(inout json);
|
||||
-- drop procedure if exists find_user_by_id(uuid, inout json);
|
||||
Reference in New Issue
Block a user