mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 08:28:42 +00:00
Fix keys
This commit is contained in:
parent
b9211d7141
commit
0588fb405d
1 changed files with 2 additions and 2 deletions
|
|
@ -743,10 +743,10 @@ class Deletes extends Action
|
|||
Console::info("Deleting CSV export files older than " . $oneWeekAgo);
|
||||
|
||||
$this->deleteByGroup('bucket_' . $bucket->getSequence(), [
|
||||
Query::select([...$this->selects, '$createdAt', 'filename', 'path']),
|
||||
Query::select([...$this->selects, '$createdAt', 'name', 'path']),
|
||||
Query::equal('bucketId', ['default']),
|
||||
Query::endsWith('filename', ['.csv']),
|
||||
Query::createdBefore($oneWeekAgo),
|
||||
Query::endsWith('name', ['.csv']),
|
||||
Query::orderDesc('$createdAt'),
|
||||
Query::orderDesc(),
|
||||
], $dbForPlatform, function (Document $file) use ($deviceForFiles) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue