Skip to content

Commit

Permalink
Merge pull request #2630 from expertiza/bugfix/team-invitation
Browse files Browse the repository at this point in the history
Issue fix Team invitation
  • Loading branch information
qureshi-ali committed Sep 8, 2023
2 parents 99ae185 + 93b54e0 commit 576f287
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/controllers/invitations_controller.rb
Expand Up @@ -77,8 +77,10 @@ def create_utility
@invitation.assignment_id = @student.parent_id
@invitation.reply_status = 'W'
@invitation.save
prepared_mail = MailerHelper.send_mail_to_user(@user, 'Invitation Received on Expertiza', 'invite_participant_to_team', '')
prepared_mail.deliver
if @user.email?
prepared_mail = MailerHelper.send_mail_to_user(@user, 'Invitation Received on Expertiza', 'invite_participant_to_team', '')
prepared_mail.deliver
end
ExpertizaLogger.info LoggerMessage.new(controller_name, @student.name, "Successfully invited student #{@user.id}", request)
end

Expand Down

0 comments on commit 576f287

Please sign in to comment.