Skip to content

Commit

Permalink
fix: test fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Dec 24, 2024
1 parent 75c41ad commit c7bb21c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/meta/boltdb/boltdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ func (bdw *BoltDB) SetUserGroups(ctx context.Context, groups []string) error {
return err
}

userData.Groups = append(userData.Groups, groups...)
userData.Groups = groups

err = bdw.setUserData(userid, tx, userData)

Expand Down
2 changes: 1 addition & 1 deletion pkg/meta/dynamodb/dynamodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ func (dwr DynamoDB) SetUserGroups(ctx context.Context, groups []string) error {
return err
}

userData.Groups = append(userData.Groups, groups...)
userData.Groups = groups

return dwr.SetUserData(ctx, userData)
}
Expand Down

0 comments on commit c7bb21c

Please sign in to comment.