From 90c95fce5192c3ebf1015e3c936cb79978fe50c3 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Mon, 11 Sep 2023 15:30:14 +0800 Subject: [PATCH] fix --- utils/fssql/metadata.go | 1 - 1 file changed, 1 deletion(-) 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 + `;` }