fix: escape character parse error di StudentSyncService
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user