Skip to content

Commit 472e2c2

Browse files
committed
skip specific filters
1 parent 7a89779 commit 472e2c2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Appwrite/Platform/Workers/StatsResources.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,25 +180,25 @@ protected function countForProject(Database $dbForPlatform, callable $getLogsDB,
180180
}
181181

182182
try {
183-
$this->countForBuckets($dbForProject, $dbForLogs, $region);
183+
$dbForProject->skipFilters(fn () => $this->countForBuckets($dbForProject, $dbForLogs, $region), $this->filters);
184184
} catch (Throwable $th) {
185185
call_user_func_array($this->logError, [$th, "StatsResources", "count_for_buckets_{$project->getId()}"]);
186186
}
187187

188188
try {
189-
$this->countImageTransformations($dbForProject, $dbForLogs, $region);
189+
$dbForProject->skipFilters(fn () => $this->countImageTransformations($dbForProject, $dbForLogs, $region), $this->filters);
190190
} catch (Throwable $th) {
191191
call_user_func_array($this->logError, [$th, "StatsResources", "count_for_buckets_{$project->getId()}"]);
192192
}
193193

194194
try {
195-
$this->countForDatabase($dbForProject, $region);
195+
$dbForProject->skipFilters(fn () => $this->countForDatabase($dbForProject, $region), $this->filters);
196196
} catch (Throwable $th) {
197197
call_user_func_array($this->logError, [$th, "StatsResources", "count_for_database_{$project->getId()}"]);
198198
}
199199

200200
try {
201-
$dbForProject->skipFilters(fn () => $this->countForSitesAndFunctions($dbForProject, $region));
201+
$dbForProject->skipFilters(fn () => $this->countForSitesAndFunctions($dbForProject, $region), $this->filters);
202202
} catch (Throwable $th) {
203203
call_user_func_array($this->logError, [$th, "StatsResources", "count_for_functions_{$project->getId()}"]);
204204
}

0 commit comments

Comments
 (0)