fix: opening team invite link in email throws error on signup page (#12397)

Co-authored-by: Keith Williams <keithwillcode@gmail.com>
This commit is contained in:
Somay Chauhan
2023-11-22 06:49:37 -03:00
committed by GitHub
co-authored by Keith Williams
parent 16c5b070b6
commit 4b060fc2cd
@@ -119,6 +119,11 @@ export const inviteMemberHandler = async ({ ctx, input }: InviteMemberOptions) =
identifier: usernameOrEmail,
token,
expires: new Date(new Date().setHours(168)), // +1 week
team: {
connect: {
id: team.id,
},
},
},
});