aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/server/ServerApi.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/server/ServerApi.js')
-rw-r--r--src/api/server/ServerApi.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js
index bc1d665b1..c60d64197 100644
--- a/src/api/server/ServerApi.js
+++ b/src/api/server/ServerApi.js
@@ -357,12 +357,11 @@ export default class ServerApi {
357 } 357 }
358 358
359 async getFeaturedRecipePreviews() { 359 async getFeaturedRecipePreviews() {
360 // 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
360 const request = await sendAuthRequest(`${apiBase()}/recipes/popular`); 361 const request = await sendAuthRequest(`${apiBase()}/recipes/popular`);
361 if (!request.ok) throw request; 362 if (!request.ok) throw request;
362 363
363 const data = await request.json(); 364 const data = await request.json();
364 // data = this._addLocalRecipesToPreviews(data);
365
366 const recipePreviews = this._mapRecipePreviewModel(data); 365 const recipePreviews = this._mapRecipePreviewModel(data);
367 debug('ServerApi::getFeaturedRecipes resolves', recipePreviews); 366 debug('ServerApi::getFeaturedRecipes resolves', recipePreviews);
368 return recipePreviews; 367 return recipePreviews;