Skip to content

Commit

Permalink
modify add member
Browse files Browse the repository at this point in the history
  • Loading branch information
Counterflowwind committed Feb 25, 2022
1 parent d2143e8 commit 7404ded
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions modules/msp/member/mebmer.service.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,10 @@ func (m memberService) CreateOrUpdateMember(ctx context.Context, request *pb.Cre
return nil, errors.NewInternalServerError(fmt.Errorf("Query project record by scopeid is empty scopeId is %v", request.Scope.Id))
}
memberReq.Scope.ID = projectIdStr
//userId := apis.GetUserID(ctx)
userIds := request.UserIds
for _, userId := range userIds {
err = m.p.bdl.AddMember(memberReq, userId)
if err != nil {
return nil, errors.NewInternalServerError(err)
}
userId := apis.GetUserID(ctx)
err = m.p.bdl.AddMember(memberReq, userId)
if err != nil {
return nil, errors.NewInternalServerError(err)
}
projectId, err := m.contextEntry(projectIdStr, request.UserIds, ctx)
if err != nil {
Expand Down

0 comments on commit 7404ded

Please sign in to comment.