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
- After assigning a domain to my Dart func...
Iβve attached the images. Could anyone please explain how this execution is being performed?
- Provider not enabled in Dotnet project
# Bug Report: Appwrite .NET SDK `CreateOAuth2Token` β `project_provider_disabled` ## Issue Using **Appwrite .NET SDK (v3.1.0)**, `CreateOAuth2Token` for Googl...
- Stuck on project restoration after inact...
Hey there! My project was paused due to inactivity today. I tried to restore it, but it's completely stuck on the restoration process. Could someone please tak...