instances added god may help
This commit is contained in:
@@ -46,7 +46,7 @@ class TenantCustomFieldService
|
||||
|
||||
public static function createForTenant(int $tenantId, array $input, int $currentUserId): array
|
||||
{
|
||||
if ($tenantId <= 0 || !TenantRepository::find($tenantId)) {
|
||||
if ($tenantId <= 0 || !(new TenantRepository())->find($tenantId)) {
|
||||
return ['ok' => false, 'errors' => [t('Tenant not found')]];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user