fix: some shit

This commit is contained in:
max_richter 2024-01-03 20:20:56 +01:00
parent 7407260b79
commit e863e74e22
2 changed files with 1 additions and 2 deletions

1
lib/cache/cache.ts vendored
View File

@ -6,7 +6,6 @@ import {
RedisValue,
} from "https://deno.land/x/redis@v0.31.0/mod.ts";
import { createLogger } from "@lib/log.ts";
import { getTimeCacheKey } from "@lib/string.ts";
const REDIS_HOST = Deno.env.get("REDIS_HOST");
const REDIS_PASS = Deno.env.get("REDIS_PASS") || "";

View File

@ -110,7 +110,7 @@ function parseIngredients(children: DocumentChild[]): Recipe["ingredients"] {
if (child.type === "paragraph") {
const nextChild = children[i + 1];
if (nextChild.type !== "list") continue;
if (!nextChild || nextChild.type !== "list") continue;
ingredients.push({
name: getTextOfChild(child) || "",