Fix incorrect response model

This commit is contained in:
Steven Nguyen 2024-01-09 03:10:43 +00:00
parent fc2a4e52e2
commit 44182b4444
No known key found for this signature in database
GPG key ID: 22EB8611C67E9E5C

View file

@ -456,7 +456,7 @@ App::get('/v1/functions/:functionId/usage')
->label('sdk.method', 'getFunctionUsage')
->label('sdk.response.code', Response::STATUS_CODE_OK)
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
->label('sdk.response.model', Response::MODEL_USAGE_FUNCTIONS)
->label('sdk.response.model', Response::MODEL_USAGE_FUNCTION)
->param('functionId', '', new UID(), 'Function ID.')
->param('range', '30d', new WhiteList(['24h', '30d', '90d']), 'Date range.', true)
->inject('response')