This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new 75cfb6e7d0 [type:bugfix] fix namespace sync bugs (#5847)
75cfb6e7d0 is described below
commit 75cfb6e7d0a329b6c5807956805b15e947e050e6
Author: aias00 <[email protected]>
AuthorDate: Mon Dec 16 19:10:49 2024 +0800
[type:bugfix] fix namespace sync bugs (#5847)
Co-authored-by: moremind <[email protected]>
---
.../apache/shenyu/admin/controller/NamespacePluginController.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/NamespacePluginController.java
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/NamespacePluginController.java
index 1d8a06827b..aba4a2eda4 100644
---
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/NamespacePluginController.java
+++
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/NamespacePluginController.java
@@ -218,13 +218,12 @@ public class NamespacePluginController implements
PagedController<NamespacePlugi
/**
* sync plugin data.
*
- * @param pluginId the plugin id
- * @param namespaceId the namespace id
+ * @param id the id
* @return {@linkplain ShenyuAdminResult}
*/
@PutMapping("/syncPluginData")
- public ShenyuAdminResult syncPluginData(@RequestParam("id") final String
pluginId, @RequestParam("namespaceId") final String namespaceId) {
- return
ShenyuAdminResult.success(syncDataService.syncPluginData(namespaceId, pluginId)
? ShenyuResultMessage.SYNC_SUCCESS : ShenyuResultMessage.SYNC_FAIL);
+ public ShenyuAdminResult syncPluginData(@RequestParam("id") final String
id) {
+ return ShenyuAdminResult.success(syncDataService.syncPluginData(id) ?
ShenyuResultMessage.SYNC_SUCCESS : ShenyuResultMessage.SYNC_FAIL);
}
/**