fix all usage ui

This commit is contained in:
Torsten Dittmann
2021-10-26 15:19:28 +02:00
parent 839284a832
commit 7224520fa8
25 changed files with 369 additions and 189 deletions
+2 -2
View File
@@ -294,7 +294,7 @@ App::get('/v1/projects/:projectId/usage')
new Query('period', Query::TYPE_EQUAL, [$period[$range]['period']]),
new Query('metric', Query::TYPE_EQUAL, [$metric]),
], $period[$range]['limit'], 0, ['time'], [Database::ORDER_DESC]);
$stats[$metric] = [];
foreach ($requestDocs as $requestDoc) {
$stats[$metric][] = [
@@ -303,7 +303,7 @@ App::get('/v1/projects/:projectId/usage')
];
}
$stats[$metric] = array_reverse($stats[$metric]);
}
}
});
$usage = new Document([