diff --git a/app/Domain/Integrations/Controllers/IntegrationController.php b/app/Domain/Integrations/Controllers/IntegrationController.php index bf29e2ac3..67ed0049d 100644 --- a/app/Domain/Integrations/Controllers/IntegrationController.php +++ b/app/Domain/Integrations/Controllers/IntegrationController.php @@ -297,7 +297,7 @@ public function updateOrganizers(string $integrationId, UpdateIntegrationUiTdata { $integration = $this->integrationRepository->getById(Uuid::fromString($integrationId)); - $organizerIds = collect($integration->organizers())->map(fn (UiTdatabankOrganizer $organizer) => $organizer->organizerId); + $organizerIds = collect($integration->uiTdatabankOrganizers())->map(fn (UiTdatabankOrganizer $organizer) => $organizer->organizerId); $newOrganizers = array_filter( UiTdatabankOrganizerMapper::mapUpdateOrganizers($request, $integrationId), fn (UiTdatabankOrganizer $organizer) => !in_array($organizer->organizerId, $organizerIds->toArray(), true) @@ -404,7 +404,7 @@ private function guardUserIsContact(Request $request, string $integrationId): ?R public function getIntegrationOrganizersWithTestOrganizer(Integration $integration): Collection { - $organizerIds = collect($integration->organizers())->map(fn (UiTdatabankOrganizer $organizer) => $organizer->organizerId); + $organizerIds = collect($integration->uiTdatabankOrganizers())->map(fn (UiTdatabankOrganizer $organizer) => $organizer->organizerId); $uitpasOrganizers = $this->searchClient->findUiTPASOrganizers(...$organizerIds)->getMember()?->getItems(); $organizers = collect($uitpasOrganizers)->map(function (SapiOrganizer $organizer) { diff --git a/app/Domain/Integrations/Integration.php b/app/Domain/Integrations/Integration.php index 9c8882608..397343ce6 100644 --- a/app/Domain/Integrations/Integration.php +++ b/app/Domain/Integrations/Integration.php @@ -180,7 +180,7 @@ public function organization(): ?Organization /** * @return array */ - public function organizers(): array + public function uiTdatabankOrganizers(): array { return $this->uiTdatabankOrganizers; }