Add is_hosted flag to accoun transformer

This commit is contained in:
= 2022-05-02 07:51:39 +10:00
parent 730aa4219c
commit 90e60fb8fc

View File

@ -85,6 +85,7 @@ class AccountTransformer extends EntityTransformer
'is_migrated' => (bool) $account->is_migrated,
'hosted_client_count' => (int) $account->hosted_client_count,
'hosted_company_count' => (int) $account->hosted_company_count,
'is_hosted' => (bool) Ninja::isHosted(),
];
}