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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...