File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/api/alpha/teams/{teamId} Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ const debug = Debug('otomi:api:alpha:teams:agents')
66
77export default function ( ) : OperationHandlerArray {
88 const get : Operation = [
9- ( { otomi, params : { teamId } } : OpenApiRequestExt , res ) : void => {
9+ async ( { otomi, params : { teamId } } : OpenApiRequestExt , res ) : Promise < void > => {
1010 debug ( `getAplAgents(${ teamId } )` )
11- const v = otomi . getAplAgents ( decodeURIComponent ( teamId ) )
11+ const v = await otomi . getAplAgents ( decodeURIComponent ( teamId ) )
1212 res . json ( v )
1313 } ,
1414 ]
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ const debug = Debug('otomi:api:alpha:teams:kb')
66
77export default function ( ) : OperationHandlerArray {
88 const get : Operation = [
9- ( { otomi, params : { teamId } } : OpenApiRequestExt , res ) : void => {
9+ async ( { otomi, params : { teamId } } : OpenApiRequestExt , res ) : Promise < void > => {
1010 debug ( `getAplKnowledgeBases(${ teamId } )` )
11- const v = otomi . getAplKnowledgeBases ( decodeURIComponent ( teamId ) )
11+ const v = await otomi . getAplKnowledgeBases ( decodeURIComponent ( teamId ) )
1212 res . json ( v )
1313 } ,
1414 ]
You can’t perform that action at this time.
0 commit comments