mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
refactor: Include new file path in response after moving model
This commit is contained in:
@@ -345,7 +345,7 @@ class LoraRoutes(BaseModelRoutes):
|
||||
success = await self.service.scanner.move_model(file_path, target_path)
|
||||
|
||||
if success:
|
||||
return web.json_response({'success': True})
|
||||
return web.json_response({'success': True, 'new_file_path': target_file_path})
|
||||
else:
|
||||
return web.Response(text='Failed to move model', status=500)
|
||||
|
||||
|
||||
@@ -515,7 +515,7 @@ class ModelApiClient {
|
||||
|
||||
// Return new file path if move succeeded
|
||||
if (result.success) {
|
||||
return targetPath;
|
||||
return result.new_file_path;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user