working on Company Tests

This commit is contained in:
David Bomba 2019-06-21 08:15:53 +10:00
parent 2ddb9ddde3
commit 9cb33f3e10

View File

@ -63,7 +63,7 @@ class CompanyController extends BaseController
public function index()
{
$companies = Company::whereAccountId(auth()->user()->id);
$companies = Company::whereAccountId(auth()->user()->company()->account->id);
return $this->listResponse($companies);