Explorar el Código

return hash on post with binary eye

Pi hace 4 meses
padre
commit
f94e5e981a
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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;