mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 19:53:44 +00:00
Fix account API tests.
This commit is contained in:
@@ -172,7 +172,7 @@ class AccountUpdateService
|
||||
*/
|
||||
private function getAccountType(string $type): AccountType
|
||||
{
|
||||
return AccountType::whereType($type)->first();
|
||||
return AccountType::whereType(ucfirst($type))->first();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -84,7 +84,7 @@ class AccountTransformer extends AbstractTransformer
|
||||
if (null !== $location) {
|
||||
$longitude = $location->longitude;
|
||||
$latitude = $location->latitude;
|
||||
$zoomLevel = $location->zoom_level;
|
||||
$zoomLevel = (int) $location->zoom_level;
|
||||
}
|
||||
return [
|
||||
'id' => (string) $account->id,
|
||||
|
Reference in New Issue
Block a user