Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when attempting to join a workspace from invite URL: Invalid prisma.member.upsert() #34

Open
cjroebuck opened this issue Dec 6, 2022 · 1 comment

Comments

@cjroebuck
Copy link

cjroebuck commented Dec 6, 2022

Describe the bug
Get the following error when trying to join a team:
error

Invalid `prisma.member.upsert()` invocation:  
{ create: 
  { workspaceId: 'clbcr6ypw0295ey3q176wovx3', 
     email: 'xxx', 
     inviter: 'clbcr6jwp0013ey3qhg6cxygo', 
     status: 'ACCEPTED' 
  }, 
  update: {}, 
  where: { email: 'xxx' ~~~~~ } }  
Unknown arg `email` in where.email for type MemberWhereUniqueInput. 

Did you mean `id`? 

Available args: type MemberWhereUniqueInput 
{    
  id?: String 
  workspaceId_email?: MemberWorkspaceIdEmailCompoundUniqueInput 
} 

To Reproduce
Sign up with account 1, create a workspace.
Sign up with account 2 in a different browser,
Got to team management in the workspace and copy the invite code URL.
In account2's browser go to the invite URL, and click join workspace.
See the error.

Expected behavior
Account joins the workspace successfully

Screenshots
error

Desktop (please complete the following information):

  • OS: Mac OS
  • Browser Chrome/Safari

Additional context
Running in localhost with railway postgres db.

@pirmax
Copy link

pirmax commented Jan 16, 2023

Have you managed to fix this problem, I don't see where it comes from. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants