Small code cleanup.

This commit is contained in:
James Cole
2024-03-16 22:57:48 +01:00
parent f0fa21dead
commit 1bd3019c16
4 changed files with 6 additions and 10 deletions

View File

@@ -68,14 +68,12 @@ class UpdateController extends Controller
$account->refresh();
app('preferences')->mark();
$transformer = new AccountTransformer();
$transformer = new AccountTransformer();
$transformer->setParameters($this->parameters);
return response()
->api($this->jsonApiObject('accounts', $account, $transformer))
->header('Content-Type', self::CONTENT_TYPE)
;
;
}
}