diff options
author | 2021-08-21 07:13:33 +0530 | |
---|---|---|
committer | 2021-08-21 07:13:33 +0530 | |
commit | 563e4d8cbf0c20d541aeeb9d0b1d530f8107273b (patch) | |
tree | 222f5c31c9056ee352394223f45f2a2cf6d7da28 /src/api/server/ServerApi.js | |
parent | fixing linter issue [skip ci] (diff) | |
download | ferdium-app-563e4d8cbf0c20d541aeeb9d0b1d530f8107273b.tar.gz ferdium-app-563e4d8cbf0c20d541aeeb9d0b1d530f8107273b.tar.zst ferdium-app-563e4d8cbf0c20d541aeeb9d0b1d530f8107273b.zip |
refactor(cleanup): remove code that refers to paid subscription
(since we are always premium/free)
Diffstat (limited to 'src/api/server/ServerApi.js')
-rw-r--r-- | src/api/server/ServerApi.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js index a55997b9d..b5042525a 100644 --- a/src/api/server/ServerApi.js +++ b/src/api/server/ServerApi.js | |||
@@ -8,7 +8,6 @@ import RecipePreviewModel from '../../models/RecipePreview'; | |||
8 | import RecipeModel from '../../models/Recipe'; | 8 | import RecipeModel from '../../models/Recipe'; |
9 | import NewsModel from '../../models/News'; | 9 | import NewsModel from '../../models/News'; |
10 | import UserModel from '../../models/User'; | 10 | import UserModel from '../../models/User'; |
11 | import OrderModel from '../../models/Order'; | ||
12 | 11 | ||
13 | import { sleep } from '../../helpers/async-helpers'; | 12 | import { sleep } from '../../helpers/async-helpers'; |
14 | 13 | ||
@@ -589,19 +588,6 @@ export default class ServerApi { | |||
589 | .filter(newsItem => newsItem !== null); | 588 | .filter(newsItem => newsItem !== null); |
590 | } | 589 | } |
591 | 590 | ||
592 | _mapOrderModels(orders) { | ||
593 | return orders | ||
594 | .map(orderItem => { | ||
595 | try { | ||
596 | return new OrderModel(orderItem); | ||
597 | } catch (e) { | ||
598 | console.error(e); | ||
599 | return null; | ||
600 | } | ||
601 | }) | ||
602 | .filter(orderItem => orderItem !== null); | ||
603 | } | ||
604 | |||
605 | _getDevRecipes() { | 591 | _getDevRecipes() { |
606 | const recipesDirectory = getDevRecipeDirectory(); | 592 | const recipesDirectory = getDevRecipeDirectory(); |
607 | try { | 593 | try { |