|
@@ -5,10 +5,11 @@ SET ":expiry" = COALESCE(:expiry, (SELECT expiry FROM code_detail WHERE hash = $
|
|
SET ":value" = COALESCE(:value, (SELECT value FROM code_detail WHERE hash = $hash));
|
|
SET ":value" = COALESCE(:value, (SELECT value FROM code_detail WHERE hash = $hash));
|
|
SET ":store" = COALESCE(:store, (SELECT store FROM code_detail WHERE hash = $hash));
|
|
SET ":store" = COALESCE(:store, (SELECT store FROM code_detail WHERE hash = $hash));
|
|
SET ":used" = COALESCE(:used, (SELECT used FROM code_detail WHERE hash = $hash));
|
|
SET ":used" = COALESCE(:used, (SELECT used FROM code_detail WHERE hash = $hash));
|
|
|
|
+SET ":content" = (SELECT json(content) FROM code WHERE hash = $hash);
|
|
SET ":validate" = 'Update';
|
|
SET ":validate" = 'Update';
|
|
SET "$action" = 'Update';
|
|
SET "$action" = 'Update';
|
|
SET ":method" = 'post';
|
|
SET ":method" = 'post';
|
|
-SET ":preview" = (SELECT used FROM code_detail WHERE hash = $hash);
|
|
|
|
|
|
+SET ":preview" = (SELECT 'data:image/svg+xml,'||svg FROM code WHERE hash = $hash);
|
|
SET ":autofill" = TRUE;
|
|
SET ":autofill" = TRUE;
|
|
SET ":filter_config" = '[
|
|
SET ":filter_config" = '[
|
|
{"name": "store", "required": true},
|
|
{"name": "store", "required": true},
|