Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: fixed issue with team-invitations and new user accounts (#3137)
Balu Babu6304fd50c349
diff --git a/packages/hoppscotch-backend/src/team-invitation/team-invite-viewer.guard.ts b/packages/hoppscotch-backend/src/team-invitation/team-invite-viewer.guard.tsindex a46f5e037..271d3031e 100644--- a/packages/hoppscotch-backend/src/team-invitation/team-invite-viewer.guard.ts+++ b/packages/hoppscotch-backend/src/team-invitation/team-invite-viewer.guard.ts@@ -32,7 +32,7 @@ export class TeamInviteViewerGuard implements CanActivate {// Get userTE.bindW('user', ({ gqlCtx }) =>pipe(- O.fromNullable(gqlCtx.getContext<{ user?: User }>().user),+ O.fromNullable(gqlCtx.getContext().req.user),TE.fromOption(() => BUG_AUTH_NO_USER_CTX),),),diff --git a/packages/hoppscotch-backend/src/team-invitation/team-invitee.guard.ts b/packages/hoppscotch-backend/src/team-invitation/team-invitee.guard.tsindex 577ad595b..1f2bdaa5d 100644--- a/packages/hoppscotch-backend/src/team-invitation/team-invitee.guard.ts+++ b/packages/hoppscotch-backend/src/team-invitation/team-invitee.guard.ts@@ -33,7 +33,7 @@ export class TeamInviteeGuard implements CanActivate {// Get userTE.bindW('user', ({ gqlCtx }) =>pipe(- O.fromNullable(gqlCtx.getContext<{ user?: User }>().user),+ O.fromNullable(gqlCtx.getContext().req.user),TE.fromOption(() => BUG_AUTH_NO_USER_CTX),),),