Skip to content

Commit

Permalink
Fixed issue with incorrect error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Delta5 committed Sep 21, 2021
1 parent 615f7e3 commit c8c3c7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Http/Controllers/Api/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ public function restore($userId = null)

return response()->json(Helper::formatStandardApiResponse('success', null, trans('admin/users/message.success.restored')));
}
return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/users/message.user_exists')), 200);

$id = $userId;
return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/users/message.user_not_found', compact('id'))), 200);
}
}

0 comments on commit c8c3c7f

Please sign in to comment.