@@ -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,