This commit is contained in:
eson 2023-09-11 15:30:14 +08:00
parent 21f90f3dd1
commit 90c95fce51

View File

@ -115,7 +115,6 @@ func MetadataResourcePATCH(tx *gorm.DB, rid string, updateMetadata any, values .
WHEN metadata IS NULL THEN ? WHEN metadata IS NULL THEN ?
ELSE JSON_MERGE_PATCH(metadata, ?) ELSE JSON_MERGE_PATCH(metadata, ?)
END END
cond, ok := values[0].(string)
WHERE resource_id = '%s'` + " and " + cond + `;` WHERE resource_id = '%s'` + " and " + cond + `;`
} }