Skip to content

Commit

Permalink
fix(account): ignore nil user in add user member
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Mar 8, 2024
1 parent aa91351 commit 0157d53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions account/accountusecase/accountinteractor/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ func (i *Workspace) AddUserMember(ctx context.Context, workspaceID workspace.ID,
}

for _, m := range ul {
if m == nil {
continue
}

err = ws.Members().Join(m.ID(), users[m.ID()], *operator.User)
if err != nil {
return nil, err
Expand Down

0 comments on commit 0157d53

Please sign in to comment.