Just revoke invite since service object handles creating new invite and sending it
This commit is contained in:
parent
c3cb46873e
commit
faa212a044
@ -129,7 +129,7 @@ def resend_invite(portfolio_id, task_order_id, form=None):
|
|||||||
if not invitation or (invitation.status is not InvitationStatus.PENDING):
|
if not invitation or (invitation.status is not InvitationStatus.PENDING):
|
||||||
raise NotFoundError("invitation")
|
raise NotFoundError("invitation")
|
||||||
|
|
||||||
Invitations.resend(g.current_user, portfolio.id, invitation.token)
|
Invitations.revoke(token=invitation.token)
|
||||||
|
|
||||||
invite_service = InvitationService(
|
invite_service = InvitationService(
|
||||||
g.current_user,
|
g.current_user,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user