update to use publisher

This commit is contained in:
Damodar Lohani committed 2025-02-05 09:53:29 +00:00
1 parent 3e778c0094
commit 68c3aa3078
5 files changed
+16 -29

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ class StatsUsage extends Action
}
//Todo Figure out way to preserve keys when the container is being recreated @shimonewman
$aggregationInterval = (int) System::getEnv('_APP_USAGE_AGGREGATION_INTERVAL', '20');
$aggregationInterval = (int) System::getEnv('_APP_STATS_AGGREGATION_INTERVAL', '20');
$project = new Document($payload['project'] ?? []);
$projectId = $project->getInternalId();
foreach ($payload['reduce'] ?? [] as $document) {