From 3ea0682b7c545dc65934a175e251e0d9f5f390a7 Mon Sep 17 00:00:00 2001
From: philipp lang <philipp@aweos.de>
Date: Fri, 28 Mar 2025 00:53:49 +0100
Subject: [PATCH] Mod sleect for contribution compilers

---
 app/Contribution/ContributionFactory.php              | 4 ++--
 tests/RequestFactories/ContributionRequestFactory.php | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/Contribution/ContributionFactory.php b/app/Contribution/ContributionFactory.php
index ceae2e63..1c2bc29c 100644
--- a/app/Contribution/ContributionFactory.php
+++ b/app/Contribution/ContributionFactory.php
@@ -32,8 +32,8 @@ class ContributionFactory
     public function compilerSelect(): Collection
     {
         return collect($this->documents)->map(fn ($document) => [
-            'title' => $document::buttonName(),
-            'class' => $document,
+            'name' => $document::buttonName(),
+            'id' => $document,
         ]);
     }
 
diff --git a/tests/RequestFactories/ContributionRequestFactory.php b/tests/RequestFactories/ContributionRequestFactory.php
index ca17ec91..ef3cffbf 100644
--- a/tests/RequestFactories/ContributionRequestFactory.php
+++ b/tests/RequestFactories/ContributionRequestFactory.php
@@ -12,7 +12,7 @@ class ContributionRequestFactory extends RequestFactory
 {
     public function definition(): array
     {
-        $compilers = collect(app(ContributionFactory::class)->compilerSelect())->pluck('class');
+        $compilers = collect(app(ContributionFactory::class)->compilerSelect())->pluck('id');
 
         return [
             'country' => Country::factory()->create()->id,