fix unfollow function
This commit is contained in:
@@ -38,4 +38,4 @@ begin
|
||||
end;
|
||||
$$;
|
||||
|
||||
-- drop function if exists find_articles(json, int, int);
|
||||
-- drop function if exists find_articles(text, text, text, int, int);
|
||||
|
||||
@@ -39,4 +39,4 @@ begin
|
||||
end;
|
||||
$$;
|
||||
|
||||
-- drop function if exists find_constitutions(json, int, int);
|
||||
-- drop function if exists find_constitutions(text, text, text, int, int);
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
create or replace function unfollow(reference regclass, target_id uuid, citizen_id uuid) returns void
|
||||
create or replace function unfollow(reference regclass, _target_id uuid, _citizen_id uuid) returns void
|
||||
language plpgsql as
|
||||
$$
|
||||
declare
|
||||
_citizen_id alias for citizen_id;
|
||||
_target_id alias for target_id;
|
||||
begin
|
||||
delete
|
||||
from follow f
|
||||
|
||||
Reference in New Issue
Block a user