Commit fe75926f authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix: remove non-existent cancelled_at from enrollments update

The enrollments table has no cancelled_at column — only update status.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 42f22330
......@@ -110,7 +110,7 @@ public function deleteParticipant(): void
DB::transaction(function () use ($participant) {
$participant->enrollments()
->whereIn('status', ['active', 'pending', 'waitlisted'])
->update(['status' => 'cancelled', 'cancelled_at' => now()]);
->update(['status' => 'cancelled']);
AttendanceRecord::where('subject_type', Participant::class)
->where('subject_id', $participant->id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment