mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:02:46 +00:00
fix: rename parameter in put method for clarity
This commit is contained in:
parent
e0bfe0cd73
commit
840fa68b98
|
|
@ -238,9 +238,9 @@ class ToolView(APIView):
|
|||
tags=[_('Tool')] # type: ignore
|
||||
)
|
||||
@has_permissions(PermissionConstants.TOOL_EDIT.get_workspace_permission())
|
||||
def put(self, request: Request, id: str, workspace_id: str):
|
||||
def put(self, request: Request, tool_id: str, workspace_id: str):
|
||||
return result.success(ToolSerializer.IconOperate(data={
|
||||
'id': id,
|
||||
'id': tool_id,
|
||||
'workspace_id': workspace_id,
|
||||
'user_id': request.user.id,
|
||||
'image': request.FILES.get('file')
|
||||
|
|
|
|||
Loading…
Reference in New Issue