From f1985345ac771fd7fb6591a3a9ecdba42837349d Mon Sep 17 00:00:00 2001 From: GoldElysium <48455312+GoldElysium@users.noreply.github.com> Date: Fri, 12 Feb 2021 15:55:29 +0100 Subject: [PATCH 1/2] Change comments property to videos --- apps/client-api/routes/v1/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, }; From 4df288288a67b2e4f4ea40474dfff439ac5557a5 Mon Sep 17 00:00:00 2001 From: GoldElysium <48455312+GoldElysium@users.noreply.github.com> Date: Fri, 12 Feb 2021 15:56:41 +0100 Subject: [PATCH 2/2] Update documentation --- api-doc/swagger_v1.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.