Merge branch '1.6.x' of https://github.com/appwrite/appwrite into migrations-backups

# Conflicts:
#	src/Appwrite/Platform/Tasks/ScheduleBase.php
This commit is contained in:
fogelito 2024-09-22 10:44:06 +03:00
commit 4d24c08220

View file

@ -151,7 +151,7 @@ abstract class ScheduleBase extends Action
$total = $total + $sum;
foreach ($results as $document) {
$localDocument = $this->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;