浏览代码

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()),
   }
 };