Fix plugin update command name and parameter
This commit is contained in:
1 parent
b5af6e7e2c
commit
2b8821bc77
1 file changed
+2
-2
+2
-2
@@ -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}`);
|
||||
|
||||
Reference in new issue
Block a user