1
0
Fork 0
mirror of synced 2024-10-03 02:37:40 +13:00

Merge branch 'main' into 1.5.x-response-request-models

This commit is contained in:
Bradley Schofield 2024-02-09 12:36:02 +00:00
commit 0f3a1c3762

View file

@ -69,6 +69,7 @@ class Usage extends Action
getProjectDB: $getProjectDB
);
}
self::$stats[$projectId]['project'] = $project;
foreach ($payload['metrics'] ?? [] as $metric) {
if (!isset(self::$stats[$projectId]['keys'][$metric['key']])) {
@ -79,7 +80,6 @@ class Usage extends Action
}
}
/**
* On Documents that tied by relations like functions>deployments>build || documents>collection>database || buckets>files.
* When we remove a parent document we need to deduct his children aggregation from the project scope.