We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb2ef82 commit 2e5420fCopy full SHA for 2e5420f
src/controllers/api/v2/accounts.js
@@ -50,7 +50,7 @@ accountsApi.create = async function (req, res) {
50
let groups = []
51
if (postData.groups) {
52
groups = await Group.getGroups(postData.groups)
53
- for (const group in groups) {
+ for (const group of groups) {
54
await group.addMember(savedId)
55
await group.save()
56
}
0 commit comments