diff --git a/src/Appwrite/Platform/Workers/Deletes.php b/src/Appwrite/Platform/Workers/Deletes.php index 38624367c9..5729bdc2c7 100644 --- a/src/Appwrite/Platform/Workers/Deletes.php +++ b/src/Appwrite/Platform/Workers/Deletes.php @@ -745,7 +745,7 @@ class Deletes extends Action Query::select([...$this->selects, '$createdAt', 'name', 'path']), Query::equal('bucketId', ['default']), Query::createdBefore($oneWeekAgo), - Query::endsWith('name', ['.csv']), + Query::endsWith('name', '.csv'), Query::orderDesc('$createdAt'), Query::orderDesc(), ], $dbForPlatform, function (Document $file) use ($deviceForFiles) {