Skip to content

Commit 2e5420f

Browse files
authored
fix(accounts): account creation fail with groups
1 parent fb2ef82 commit 2e5420f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/api/v2/accounts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ accountsApi.create = async function (req, res) {
5050
let groups = []
5151
if (postData.groups) {
5252
groups = await Group.getGroups(postData.groups)
53-
for (const group in groups) {
53+
for (const group of groups) {
5454
await group.addMember(savedId)
5555
await group.save()
5656
}

0 commit comments

Comments
 (0)