Merge pull request #11464 from appwrite/fix/schedule-base-project-access-update

fix: Update in-memory project document after accessedAt update
This commit is contained in:
Chirag Aggarwal
2026-03-05 20:07:49 +05:30
committed by GitHub
+3 -1
View File
@@ -59,9 +59,11 @@ abstract class ScheduleBase extends Action
if (!$project->isEmpty() && $project->getId() !== 'console') {
$accessedAt = $project->getAttribute('accessedAt', 0);
if (DateTime::formatTz(DateTime::addSeconds(new \DateTime(), -APP_PROJECT_ACCESS)) > $accessedAt) {
$now = DateTime::now();
$dbForPlatform->updateDocument('projects', $project->getId(), new Document([
'accessedAt' => DateTime::now()
'accessedAt' => $now
]));
$project->setAttribute('accessedAt', $now);
}
}
}