FIX: remove unneeded keys from failed response

This commit is contained in:
Arpit Jalan 2018-11-22 14:59:50 +05:30
parent 96168cb3c6
commit 60941f214c
1 changed files with 1 additions and 4 deletions

View File

@ -545,11 +545,8 @@ class UsersController < ApplicationController
else
if @error || @user&.errors&.any?
render json: {
success: false,
message: @error,
errors: @user&.errors&.to_hash,
is_developer: UsernameCheckerService.is_developer?(@user&.email),
admin: @user&.admin?
errors: @user&.errors&.to_hash
}
else
render json: {