diff options
author | Vijay A <avijayr@protonmail.com> | 2021-08-03 09:04:30 +0530 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-08-03 05:51:51 +0000 |
commit | a9c1abc6f11cb193388fad505c0304f1efe60a30 (patch) | |
tree | dfb685527f9dc44b6245213a0c3e437ecb272132 /src/api/server | |
parent | Changed the cron for the ferdi build to run at 12:15 am UTC since the time de... (diff) | |
download | ferdium-app-a9c1abc6f11cb193388fad505c0304f1efe60a30.tar.gz ferdium-app-a9c1abc6f11cb193388fad505c0304f1efe60a30.tar.zst ferdium-app-a9c1abc6f11cb193388fad505c0304f1efe60a30.zip |
Removed straggling code related to 'popular services'.
Diffstat (limited to 'src/api/server')
-rw-r--r-- | src/api/server/ServerApi.js | 3 |
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; |