fix: typo in scheduler base

This commit is contained in:
Binyamin Yawitz 2024-09-20 12:37:45 -04:00
parent 9f7bf5a9f7
commit 5ffca0f6fa
No known key found for this signature in database

View file

@ -165,7 +165,7 @@ abstract class ScheduleBase extends Action
$total = $total + $sum;
foreach ($results as $document) {
$localDocument = $schedules[$document['resourceId']] ?? null;
$localDocument = $this->schedules[$document->getInternalId()] ?? null;
// Check if resource has been updated since last sync
$org = $localDocument !== null ? \strtotime($localDocument['resourceUpdatedAt']) : null;