Fix plugin update command name and parameter
This commit is contained in:
parent
b5af6e7e2c
commit
2b8821bc77
@ -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}`);
|
||||
|
Loading…
Reference in New Issue
Block a user