diff --git a/api-doc/swagger_v1.yaml b/api-doc/swagger_v1.yaml index 562bed8..00d3dba 100644 --- a/api-doc/swagger_v1.yaml +++ b/api-doc/swagger_v1.yaml @@ -615,7 +615,7 @@ paths: schema: type: object properties: - data: + videos: type: array description: > List of videos, along with channel and matched comments. diff --git a/apps/client-api/routes/v1/comments.js b/apps/client-api/routes/v1/comments.js index 966554a..a713238 100644 --- a/apps/client-api/routes/v1/comments.js +++ b/apps/client-api/routes/v1/comments.js @@ -89,7 +89,7 @@ router.get('/search', limitChecker, asyncMiddleware(async (req, res) => { count: videos.length, total: await totalCount, query: sanitizedQuery, - comments: videos, + videos, cached: false, };