diff --git a/app/Services/StudentSyncService.php b/app/Services/StudentSyncService.php index a4f1c87..f6fbb42 100644 --- a/app/Services/StudentSyncService.php +++ b/app/Services/StudentSyncService.php @@ -34,7 +34,7 @@ class StudentSyncService $payload = $response->json(); $items = Arr::get($payload, 'data', []); - \$syncedIds = []; + $syncedIds = []; DB::transaction(function () use ($items, &$results, &$syncedIds) { foreach ($items as $item) { @@ -115,7 +115,7 @@ class StudentSyncService }); // Deactivate students not in this sync (graduated/dropped out) - \$deactivated = Student::where('is_active', true) + $deactivated = Student::where('is_active', true) ->whereNotIn('id', $syncedIds) ->update(['is_active' => false]); $results['students_deactivated'] = $deactivated;