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}`);