summaryrefslogtreecommitdiff
path: root/src/db/rest/post/api_post_update.sql
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/db/rest/post/api_post_update.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/rest/post/api_post_update.sql b/src/db/rest/post/api_post_update.sql
index 7b4360d..351a698 100644
--- a/src/db/rest/post/api_post_update.sql
+++ b/src/db/rest/post/api_post_update.sql
@@ -27,7 +27,7 @@ BEGIN
END IF;
IF _changed THEN
- UPDATE admin.post SET
+ UPDATE xssbook.post SET
content = NEW.content,
modified = clock_timestamp()
WHERE id = OLD.id;
@@ -41,7 +41,7 @@ GRANT EXECUTE ON FUNCTION _api.post_update()
TO rest_user;
GRANT UPDATE ON TABLE api.post
TO rest_user;
-GRANT UPDATE ON TABLE admin.post
+GRANT UPDATE ON TABLE xssbook.post
TO rest_user;
CREATE TRIGGER api_post_update_trgr