From 2a2bf7f154de7d9dca95e049890ef0c7848bd659 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Mon, 14 Apr 2025 18:23:35 +1200 Subject: [PATCH] Fix maintenance --- src/Appwrite/Platform/Tasks/Maintenance.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Appwrite/Platform/Tasks/Maintenance.php b/src/Appwrite/Platform/Tasks/Maintenance.php index 7c8f9bda78..2df75b22a8 100644 --- a/src/Appwrite/Platform/Tasks/Maintenance.php +++ b/src/Appwrite/Platform/Tasks/Maintenance.php @@ -49,9 +49,6 @@ class Maintenance extends Action $dbForPlatform->foreach( 'projects', - [ - Query::equal('region', [System::getEnv('_APP_REGION', 'default')]) - ], function (Document $project) use ($queueForDeletes, $usageStatsRetentionHourly) { $queueForDeletes ->setType(DELETE_TYPE_MAINTENANCE) @@ -60,6 +57,7 @@ class Maintenance extends Action ->trigger(); }, [ + Query::equal('region', [System::getEnv('_APP_REGION', 'default')]), Query::limit(100), ] );