From 0aebad7db5079060e96d13699310a14684fc3ea3 Mon Sep 17 00:00:00 2001 From: nxsre <32614138+nxsre@users.noreply.github.com> Date: Sat, 28 Oct 2023 12:25:54 +0800 Subject: [PATCH] fix release_history search bug (#1281) --- store/boltdb/config_file_release_history.go | 2 +- store/mysql/config_file_release_history.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/store/boltdb/config_file_release_history.go b/store/boltdb/config_file_release_history.go index 5156adafd..10340327a 100644 --- a/store/boltdb/config_file_release_history.go +++ b/store/boltdb/config_file_release_history.go @@ -98,7 +98,7 @@ func (rh *configFileReleaseHistoryStore) QueryConfigFileReleaseHistories(filter var ( namespace = filter["namespace"] group = filter["group"] - fileName = filter["name"] + fileName = filter["file_name"] endId, _ = strconv.ParseUint(filter["endId"], 10, 64) fields = []string{FileHistoryFieldNamespace, FileHistoryFieldGroup, FileHistoryFieldFileName, FileHistoryFieldId} diff --git a/store/mysql/config_file_release_history.go b/store/mysql/config_file_release_history.go index 10b15b052..8101d334f 100644 --- a/store/mysql/config_file_release_history.go +++ b/store/mysql/config_file_release_history.go @@ -61,7 +61,7 @@ func (rh *configFileReleaseHistoryStore) QueryConfigFileReleaseHistories(filter namespace := filter["namespace"] group := filter["group"] - fileName := filter["name"] + fileName := filter["file_name"] endId, _ := strconv.ParseUint(filter["endId"], 10, 64) var queryParams []interface{}