fix: opening team invite link in email throws error on signup page (#12397)
Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
1 parent
16c5b070b6
commit
4b060fc2cd
1 file changed
+5
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user