add test batches

This commit is contained in:
root
2026-06-08 23:45:55 -04:00
parent c792b8be05
commit 8d4d610b82
1480 changed files with 22587 additions and 10762 deletions
@@ -50,7 +50,7 @@ class EventController extends BaseApiController
public function show(int $eventId): JsonResponse
{
$event = $this->listService->find($eventId);
if (! $event) {
if (!$event) {
return response()->json(['ok' => false, 'message' => 'Event not found.'], 404);
}
@@ -73,7 +73,6 @@ class EventController extends BaseApiController
$result = $this->managementService->create($payload, $request->file('flyer'), $guard);
} catch (\Throwable $e) {
Log::error('Event creation failed.', ['error' => $e->getMessage()]);
return response()->json(['ok' => false, 'message' => 'Failed to create event.'], 500);
}
@@ -177,6 +176,9 @@ class EventController extends BaseApiController
]);
}
/**
* @return int|JsonResponse
*/
private function authenticatedUserIdOrUnauthorized(): int|JsonResponse
{
$userId = (int) (auth()->id() ?? 0);