Sfoglia il codice sorgente

Fix type error in JoC

Tati 7 anni fa
parent
commit
f4521bce25
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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()),
   }
 };