Skip to content

Commit 126de78

Browse files
committed
skip functions
1 parent e919896 commit 126de78

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Appwrite/Platform/Action.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Action extends UtopiaAction
4646
*
4747
* @return void
4848
*/
49-
protected function foreachDocument(Database $database, string $collection, array $queries = [], callable $callback = null, int $limit = 1000, bool $concurrent = false): void
49+
protected function foreachDocument(Database $database, string $collection, array $queries = [], callable $callback = null, int $limit = 1000, bool $concurrent = false, bool $filters = true): void
5050
{
5151
$results = [];
5252
$sum = $limit;

src/Appwrite/Platform/Workers/StatsResources.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ protected function countForProject(Database $dbForPlatform, callable $getLogsDB,
199199
}
200200

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

0 commit comments

Comments
 (0)