mirror of https://gitee.com/answerdev/answer.git
UpdateQuestionInviteUser
This commit is contained in:
parent
8431f9ab13
commit
3e219569b6
|
@ -566,7 +566,10 @@ func (qs *QuestionService) UpdateQuestionInviteUser(ctx context.Context, req *sc
|
|||
for _, item := range req.InviteUser {
|
||||
_, ok := inviteUserInfoList[item]
|
||||
if ok {
|
||||
inviteUserIDs = append(inviteUserIDs, inviteUserInfoList[item].ID)
|
||||
//The inviter can't be himself.
|
||||
if req.UserID != inviteUserInfoList[item].ID {
|
||||
inviteUserIDs = append(inviteUserIDs, inviteUserInfoList[item].ID)
|
||||
}
|
||||
}
|
||||
}
|
||||
inviteUserStr := ""
|
||||
|
|
Loading…
Reference in New Issue