Fix account API tests.

This commit is contained in:
James Cole
2021-03-13 13:26:45 +01:00
parent 7118abe28d
commit bd040c80b2
5 changed files with 388 additions and 143 deletions

View File

@@ -172,7 +172,7 @@ class AccountUpdateService
*/
private function getAccountType(string $type): AccountType
{
return AccountType::whereType($type)->first();
return AccountType::whereType(ucfirst($type))->first();
}
/**

View File

@@ -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,