A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix notificationInviteUser
aichy1263ad1c40cea89
diff --git a/internal/service/question_service.go b/internal/service/question_service.goindex cf46c580..fa92a750 100644--- a/internal/service/question_service.go+++ b/internal/service/question_service.go@@ -589,13 +589,16 @@ func (qs *QuestionService) UpdateQuestionInviteUser(ctx context.Context, req *sc//send notificationoldInviteUserIDsStr := originQuestion.InviteUserIDoldInviteUserIDs := make([]string, 0)+ needSendNotificationUserIDs := make([]string, 0)if oldInviteUserIDsStr != "" {err = json.Unmarshal([]byte(oldInviteUserIDsStr), &oldInviteUserIDs)if err == nil {- needSendNotificationUserIDs := converter.ArrayNotInArray(oldInviteUserIDs, inviteUserIDs)- go qs.notificationInviteUser(ctx, needSendNotificationUserIDs, originQuestion.ID, originQuestion.Title, req.UserID)+ needSendNotificationUserIDs = converter.ArrayNotInArray(oldInviteUserIDs, inviteUserIDs)}+ } else {+ needSendNotificationUserIDs = inviteUserIDs}+ go qs.notificationInviteUser(ctx, needSendNotificationUserIDs, originQuestion.ID, originQuestion.Title, req.UserID)return nil}