Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions permit/api/user_invites.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .context import ApiContextLevel, ApiKeyAccessLevel
from .models import (
ElementsUserInviteApprove,
ElementsUserInviteRead,
UserRead,
)


Expand All @@ -24,7 +24,7 @@ def __user_invites(self) -> SimpleHttpClient:
)

@validate_arguments # type: ignore[operator]
async def approve(self, user_invite_id: str, approve_data: ElementsUserInviteApprove) -> ElementsUserInviteRead:
async def approve(self, user_invite_id: str, approve_data: ElementsUserInviteApprove) -> UserRead:
"""
Approves a user invite.

Expand All @@ -43,6 +43,6 @@ async def approve(self, user_invite_id: str, approve_data: ElementsUserInviteApp
await self._ensure_context(ApiContextLevel.ENVIRONMENT)
return await self.__user_invites.post(
f"/{user_invite_id}/approve",
model=ElementsUserInviteRead,
model=UserRead,
json=approve_data,
)
Loading