mirror of
https://github.com/makeplane/plane.git
synced 2025-12-24 15:49:36 +01:00
fix: workpsace id during token creation
This commit is contained in:
@@ -24,7 +24,7 @@ class ApiTokenEndpoint(BaseAPIView):
|
||||
)
|
||||
|
||||
api_token = APIToken.objects.create(
|
||||
label=label, user=request.user, workspace=workspace
|
||||
label=label, user=request.user, workspace_id=workspace
|
||||
)
|
||||
|
||||
serializer = APITokenSerializer(api_token)
|
||||
|
||||
Reference in New Issue
Block a user