fix unfollow function

This commit is contained in:
2019-08-14 18:36:27 +02:00
parent d03b8dcebb
commit c1f228e3c5
3 changed files with 3 additions and 6 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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