diff --git a/utils/fssql/metadata.go b/utils/fssql/metadata.go index 143354c0..5e671a81 100644 --- a/utils/fssql/metadata.go +++ b/utils/fssql/metadata.go @@ -115,7 +115,6 @@ func MetadataResourcePATCH(tx *gorm.DB, rid string, updateMetadata any, values . WHEN metadata IS NULL THEN ? ELSE JSON_MERGE_PATCH(metadata, ?) END - cond, ok := values[0].(string) WHERE resource_id = '%s'` + " and " + cond + `;` }