fix the build

This commit is contained in:
Arpit Jalan 2017-02-03 15:35:33 +05:30
parent 26ccf61ab1
commit 5523d0dbf9
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ class InvitesController < ApplicationController
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
@ -71,7 +71,7 @@ class InvitesController < ApplicationController
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