Explorar o código

Fix type error in JoC

Tati %!s(int64=7) %!d(string=hai) anos
pai
achega
f4521bce25
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()),
   }
 };