fix: typo usage
This commit is contained in:
parent
3485373cd7
commit
5e74c5bbc4
|
@ -114,7 +114,7 @@ App::get('/v1/project/usage')
|
||||||
$executionsBreakdown = array_map(function ($function) use ($dbForProject) {
|
$executionsBreakdown = array_map(function ($function) use ($dbForProject) {
|
||||||
$id = $function->getId();
|
$id = $function->getId();
|
||||||
$name = $function->getAttribute('name');
|
$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', [
|
$value = $dbForProject->findOne('stats', [
|
||||||
Query::equal('metric', [$metric]),
|
Query::equal('metric', [$metric]),
|
||||||
Query::equal('period', ['inf'])
|
Query::equal('period', ['inf'])
|
||||||
|
|
Loading…
Reference in a new issue