From 2b8821bc7787742f14ba9022d3057562d5db7f87 Mon Sep 17 00:00:00 2001 From: Rbanh Date: Sun, 30 Mar 2025 19:37:10 -0400 Subject: [PATCH] Fix plugin update command name and parameter --- src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 96953ef..aab7986 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -629,12 +629,12 @@ function App() { try { console.log(`Updating plugin: ${plugin.name} to version ${plugin.latest_version}`); - const newFilePath = await invoke("replace_plugin", { + const newFilePath = await invoke("update_plugin", { pluginId: plugin.repository_id, version: plugin.latest_version, repository: plugin.repository_source, currentFilePath: plugin.file_path, - serverInfo: serverInfo + serverTypeStr: serverInfo?.server_type }); console.log(`Update successful for ${plugin.name}, new file path: ${newFilePath}`);