Also, what version of Appwrite you're using?
There
The latest version
I'm working with the cloud
And last the createTeamMebership code?
It's there
It's interesting but the createMemebership has a different signature then the one you see online.
https://github.com/appwrite/sdk-for-node/blob/master/lib/services/teams.js#L231
Try this in your code
const membership = await teams.createMembership(
teamID,
roles,
redirectUrl,
userEmail
);
Because the order is different you've sent the redirectUrl as email and it wasn't an email.
Alright
It works fine. Thanks
I don't even know how I missed that.
<:appwritefire:823999000330895380>
It's not on you The order on the docs aren't clear (correct)
Yeah. But it's kind of the norm that optional parameters come after the mandatory ones.
I think it meant to be to other langauges that you can choose and have named parameters.
That's right
roles should be above though
if its a required param
Ohh., sure also this Agreed.
You can upvote it https://github.com/appwrite/appwrite/issues/5676
I'm actually surprised roles is required π
π So maybe the issue will get an upvote from you.
π
Recommended threads
- Problem with the new Email policies
when user set those thing from cloud panel and when they open that page again or reload that time it forget what we have checked and it set default to false on ...
- Deleted my account, trying to signup aga...
https://cloud.appwrite.io/console/login?error=%7B%22message%22%3A%22This+email+address+must+already+be+in+its+canonical+form.+Please+remove+aliases%2C+tags%2C+o...
- Unable to create Sites or Functions with...
Heya, I was looking at the appwrite documentation for Sites API with the server api: https://appwrite.io/docs/references/cloud/server-nodejs/sites I canβt fin...