refactor: Include new file path in response after moving model

This commit is contained in:
Will Miao
2025-07-25 15:10:03 +08:00
parent 1ed5630464
commit 08265a85ec
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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;
}