You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
I think a better solution would be for makeGroupMembership() to take an array of usernames, iterate through them creating an Invitation for each, add them to the userGroup's members array, then save the userGroup with the updates.
The text was updated successfully, but these errors were encountered:
I think it would be cool to have a dedicated method for bulk invitation generation. I'm not sure if overloading the existing method is the right idea, but maybe. IMO, we should have a dedicated method for bulk invitations. Under the hood, it could be much more efficient in generating multiple invitations, and obviously fix this issue you're running into.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://github.com/blockstack/radiks/blob/be57ef02595e5cbe44164550a86799dcb195f0cf/src/models/user-group.ts#L65
This might be caused by
makeGroupMembership()
saving theuserGroup
every time its called.My solution for this is to sequentially call
makeGroupMembership()
with reduce.I think a better solution would be for
makeGroupMembership()
to take an array of usernames, iterate through them creating anInvitation
for each, add them to theuserGroup
's members array, then save theuserGroup
with the updates.The text was updated successfully, but these errors were encountered: