Skip to content

Commit

Permalink
fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitjalan committed Feb 3, 2017
1 parent 26ccf61 commit 5523d0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/invites_controller.rb
Expand Up @@ -49,7 +49,7 @@ def create

invite_exists = Invite.where(email: params[:email], invited_by_id: current_user.id).first
if invite_exists && !guardian.can_send_multiple_invites?(current_user)
render json: failed_json, status: 422
return render json: failed_json, status: 422
end

begin
Expand All @@ -71,7 +71,7 @@ def create_invite_link

invite_exists = Invite.where(email: params[:email], invited_by_id: current_user.id).first
if invite_exists && !guardian.can_send_multiple_invites?(current_user)
render json: failed_json, status: 422
return render json: failed_json, status: 422
end

begin
Expand Down

0 comments on commit 5523d0d

Please sign in to comment.