Fix plugin update command name and parameter

This commit is contained in:
Rbanh 2025-03-30 19:37:10 -04:00
parent b5af6e7e2c
commit 2b8821bc77

View File

@ -629,12 +629,12 @@ function App() {
try {
console.log(`Updating plugin: ${plugin.name} to version ${plugin.latest_version}`);
const newFilePath = await invoke<string>("replace_plugin", {
const newFilePath = await invoke<string>("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}`);