Merge branch '149-fix-api-field' into 'develop'
fix: 🐛 set type_activite field to lowercase
See merge request ldc-web/projets/ldc!167
This commit is contained in:
commit
a66830c6fb
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
namespace App\Http\Controllers\Api;
|
||||
|
||||
use App\Models\Company;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class CompanyController
|
||||
{
|
||||
|
|
@ -25,7 +26,7 @@ class CompanyController
|
|||
'url' => $company->url,
|
||||
'latitude' => $company->latitude,
|
||||
'longitude' => $company->longitude,
|
||||
'type_activite' => $company->companyActivity->name,
|
||||
'type_activite' => Str::lower($company->companyActivity->name),
|
||||
'filiere' => $company->companySector?->name,
|
||||
], fn($value) => !is_null($value));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue