From 55dd67d28e691338b4ecbe928436c4f2a41ad5cb Mon Sep 17 00:00:00 2001 From: kytwb Date: Sun, 2 Jan 2022 00:40:42 +0100 Subject: Revert "Removed straggling code related to popular services." This reverts commit a9c1abc6f11cb193388fad505c0304f1efe60a30. --- src/api/server/ServerApi.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/api/server') diff --git a/src/api/server/ServerApi.ts b/src/api/server/ServerApi.ts index 2fd1a8d0d..0144a1069 100644 --- a/src/api/server/ServerApi.ts +++ b/src/api/server/ServerApi.ts @@ -368,11 +368,12 @@ export default class ServerApi { } async getFeaturedRecipePreviews() { - // TODO: If we are hitting the internal-server, we need to return an empty list, else we can hit the remote server and get the data const request = await sendAuthRequest(`${apiBase()}/recipes/popular`); if (!request.ok) throw new Error(request.statusText); const data = await request.json(); + // data = this._addLocalRecipesToPreviews(data); + const recipePreviews = this._mapRecipePreviewModel(data); debug('ServerApi::getFeaturedRecipes resolves', recipePreviews); return recipePreviews; -- cgit v1.2.3-54-g00ecf