diff --git a/app/Http/Controllers/AccountApiController.php b/app/Http/Controllers/AccountApiController.php index 6d4ef0ccf1..5f34f267db 100644 --- a/app/Http/Controllers/AccountApiController.php +++ b/app/Http/Controllers/AccountApiController.php @@ -152,7 +152,7 @@ class AccountApiController extends BaseAPIController $account->devices = json_encode($devices); $account->save(); - return $this->response($account); + return $this->response($newDevice); } @@ -185,7 +185,7 @@ class AccountApiController extends BaseAPIController $account->devices = json_encode($devices); $account->save(); - return $this->response($account); + return $this->response($newDevice); } }