fix invalid statement error

This commit is contained in:
Kay Faraday 2023-02-04 05:42:20 +00:00
parent e6b9134e8c
commit 872d7f4827
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ SELECT blockbot_notify(
$$ LANGUAGE SQL;
CREATE FUNCTION blockbot_block() RETURNS TRIGGER AS $$ BEGIN
SELECT blockbot_trigger_inner(NEW.account_id, NEW.target_account_id, false);
PERFORM * FROM blockbot_trigger_inner(NEW.account_id, NEW.target_account_id, false);
RETURN NEW;
END; $$ LANGUAGE plpgsql;
@ -61,7 +61,7 @@ FOR EACH ROW
EXECUTE FUNCTION blockbot_block();
CREATE FUNCTION blockbot_unblock() RETURNS TRIGGER AS $$ BEGIN
SELECT blockbot_trigger_inner(OLD.account_id, OLD.target_account_id, true);
PERFORM * FROM blockbot_trigger_inner(OLD.account_id, OLD.target_account_id, true);
RETURN NULL;
END; $$ LANGUAGE plpgsql;