1
0
Fork 0
mirror of synced 2024-07-03 13:41:01 +12:00

fix: typo usage

This commit is contained in:
Torsten Dittmann 2023-12-11 17:12:43 +01:00
parent 3485373cd7
commit 5e74c5bbc4

View file

@ -114,7 +114,7 @@ App::get('/v1/project/usage')
$executionsBreakdown = array_map(function ($function) use ($dbForProject) {
$id = $function->getId();
$name = $function->getAttribute('name');
$metric = str_replace('{bucketInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS);
$metric = str_replace('{functionInternalId}', $function->getInternalId(), METRIC_FUNCTION_ID_EXECUTIONS);
$value = $dbForProject->findOne('stats', [
Query::equal('metric', [$metric]),
Query::equal('period', ['inf'])