Fix avatar/gravatar call throwing error

This commit is contained in:
Nabeel Shahzad
2020-03-25 10:58:03 -04:00
parent eafea01e22
commit cce575c1a6
4 changed files with 17 additions and 8 deletions

View File

@@ -90,7 +90,7 @@ class UserController extends Controller
public function get($id)
{
$user = $this->userRepo
->with(['airline', 'bids'])
->with(['airline', 'bids', 'rank'])
->find($id);
return new UserResource($user);