ソースを参照

Fix type error in JoC

Tati 7 年 前
コミット
f4521bce25
1 ファイル変更1 行追加1 行削除
  1. 1 1
      ktchn/src/recipes/scrape/sources/just-one-cookbook.ts

+ 1 - 1
ktchn/src/recipes/scrape/sources/just-one-cookbook.ts

@@ -32,7 +32,7 @@ const getRecipeDetails = ($: CheerioSelector): RecipeDetails => {
   return {
     preparationTime: $(SELECTORS.PREP_TIME).text(),
     cookingTime: $(SELECTORS.COOK_TIME).text(),
-    servings: $(SELECTORS.SERVINGS).text(),
+    servings: Number($(SELECTORS.SERVINGS).text()),
   }
 };