Explorar o código

fix update code

Pi hai 3 meses
pai
achega
72244eaf3d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      util-sqlpage/code/update.sql

+ 1 - 1
util-sqlpage/code/update.sql

@@ -1,5 +1,5 @@
 INSERT INTO code_detail(hash, type, store, value, expiry, used)
-VALUES (:hash, :type->>'0', :store->>'0', :value, :expiry, :used)
+VALUES (:hash, :type->>0, :store->>0, :value, :expiry, :used)
 ON CONFLICT DO
 UPDATE SET
   type = excluded.type,