From bf24b194b3cea2c6d221be6a84114953f759cc11 Mon Sep 17 00:00:00 2001 From: ISMAIL MASSERAN Date: Sun, 19 Apr 2026 12:14:53 +0800 Subject: [PATCH] DONE: fix bug where register attendance is not appear --- TODO.md | 3 ++- app/Http/Controllers/API/v1/Nominee/AddController.php | 2 +- .../API/v1/Voter/SyncApplicableVotersController.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index 3210406..5fd7f47 100644 --- a/TODO.md +++ b/TODO.md @@ -1,2 +1,3 @@ [ ] checking user can vote one or two based on number of nominees -[x] disable auto trigger tac \ No newline at end of file +[x] disable auto trigger tac +[ ] set the env back to production in prod \ No newline at end of file diff --git a/app/Http/Controllers/API/v1/Nominee/AddController.php b/app/Http/Controllers/API/v1/Nominee/AddController.php index 3f95165..7a30954 100644 --- a/app/Http/Controllers/API/v1/Nominee/AddController.php +++ b/app/Http/Controllers/API/v1/Nominee/AddController.php @@ -53,7 +53,7 @@ class AddController extends Controller 'unit' => 'required', 'position_id' => 'required|exists:position,id', 'partylist_id' => 'nullable|exists:partylist,id', - 'photo' => 'nullable|image', + 'photo' => 'nullable', 'umur' => 'nullable|integer|min:1|max:120', 'jawatan_sekarang' => 'nullable|string|max:255', 'experience' => 'nullable|string', diff --git a/app/Http/Controllers/API/v1/Voter/SyncApplicableVotersController.php b/app/Http/Controllers/API/v1/Voter/SyncApplicableVotersController.php index ba67b48..2880a7b 100644 --- a/app/Http/Controllers/API/v1/Voter/SyncApplicableVotersController.php +++ b/app/Http/Controllers/API/v1/Voter/SyncApplicableVotersController.php @@ -65,7 +65,7 @@ class SyncApplicableVotersController extends Controller } $new = $template->replicate(); $new->election_id = $electionId; - $new->kehadiran = null; + $new->kehadiran = 0; $new->fizikal_registration_verified_at = null; $new->persetujuan = null; $new->status_penyata = 'DRAF';