Skip to content

Commit 6715609

Browse files
committed
fix: make sponsorship_id optional on PUT
1 parent 8d06131 commit 6715609

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/Http/Controllers/Apis/Protected/Summit/Factories/SponsorValidationRulesFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static function buildForUpdate(array $payload = []): array
7777
'header_image_alt_text' => 'sometimes|string|max:255',
7878
'header_image_mobile_alt_text' => 'sometimes|string|max:255',
7979
'carousel_advertise_image_alt_text' => 'sometimes|string|max:255',
80-
'sponsorship_id' => 'required|integer',
80+
'sponsorship_id' => 'sometimes|integer',
8181
];
8282
}
8383

@@ -92,4 +92,4 @@ public static function buildForUpdateV2(array $payload = []): array
9292
$rules['sponsorships'] = 'sometimes|sponsorship_dto_array';
9393
return $rules;
9494
}
95-
}
95+
}

0 commit comments

Comments
 (0)