浏览代码

return hash on post with binary eye

Pi 4 月之前
父节点
当前提交
f94e5e981a
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      util-sqlpage/code/new.sql

+ 1 - 2
util-sqlpage/code/new.sql

@@ -6,5 +6,4 @@ UPDATE SET
   created = excluded.created,
   svg = excluded.svg
 WHERE excluded.created > code.created;
-SELECT 'text' AS component;
-SELECT $hash AS contents;
+SELECT 'json' AS component, json('"'||$hash||'"') AS contents;