File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
services/web/server/src/simcore_service_webserver/invitations Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ async def validate_invitation_url(
6060 raise InvalidInvitationError (reason = MSG_INVALID_INVITATION_URL ) from err
6161
6262 # check with service
63- invitation = await get_invitations_service_api ( app = app ). extract_invitation (
64- invitation_url = valid_url
65- )
63+ invitation : ApiInvitationContent = await get_invitations_service_api (
64+ app = app
65+ ). extract_invitation ( invitation_url = valid_url )
6666
6767 # check email
6868 if invitation .guest .lower () != guest_email .lower ():
@@ -108,9 +108,10 @@ async def extract_invitation(
108108 raise InvalidInvitationError (reason = MSG_INVALID_INVITATION_URL ) from err
109109
110110 # check with service
111- return await get_invitations_service_api (app = app ).extract_invitation (
112- invitation_url = valid_url
113- )
111+ invitation : ApiInvitationContent = await get_invitations_service_api (
112+ app = app
113+ ).extract_invitation (invitation_url = valid_url )
114+ return invitation
114115
115116
116117async def generate_invitation (
@@ -122,4 +123,7 @@ async def generate_invitation(
122123 InvalidInvitationError:
123124 InvitationsServiceUnavailableError:
124125 """
125- return await get_invitations_service_api (app = app ).generate_invitation (params )
126+ invitation : ApiInvitationContentAndLink = await get_invitations_service_api (
127+ app = app
128+ ).generate_invitation (params )
129+ return invitation
You can’t perform that action at this time.
0 commit comments