Transformer fixes

This commit is contained in:
Hillel Coren 2018-06-28 18:24:20 +03:00
parent 1c54501e7b
commit 4de682994b

View File

@ -38,7 +38,7 @@ class UserAccountTransformer extends EntityTransformer
'default_url' => SITE_URL, 'default_url' => SITE_URL,
'plan' => $account->company->plan ?: '', 'plan' => $account->company->plan ?: '',
'logo' => $account->logo ?: '', 'logo' => $account->logo ?: '',
'logo_url' => $account->getLogoURL(), 'logo_url' => $account->getLogoURL() ?: '',
'currency_id' => (int) $account->currency_id, 'currency_id' => (int) $account->currency_id,
'timezone_id' => (int) $account->timezone_id, 'timezone_id' => (int) $account->timezone_id,
'date_format_id' => (int) $account->date_format_id, 'date_format_id' => (int) $account->date_format_id,