fix: some shit
This commit is contained in:
parent
7407260b79
commit
e863e74e22
1
lib/cache/cache.ts
vendored
1
lib/cache/cache.ts
vendored
@ -6,7 +6,6 @@ import {
|
|||||||
RedisValue,
|
RedisValue,
|
||||||
} from "https://deno.land/x/redis@v0.31.0/mod.ts";
|
} from "https://deno.land/x/redis@v0.31.0/mod.ts";
|
||||||
import { createLogger } from "@lib/log.ts";
|
import { createLogger } from "@lib/log.ts";
|
||||||
import { getTimeCacheKey } from "@lib/string.ts";
|
|
||||||
|
|
||||||
const REDIS_HOST = Deno.env.get("REDIS_HOST");
|
const REDIS_HOST = Deno.env.get("REDIS_HOST");
|
||||||
const REDIS_PASS = Deno.env.get("REDIS_PASS") || "";
|
const REDIS_PASS = Deno.env.get("REDIS_PASS") || "";
|
||||||
|
@ -110,7 +110,7 @@ function parseIngredients(children: DocumentChild[]): Recipe["ingredients"] {
|
|||||||
if (child.type === "paragraph") {
|
if (child.type === "paragraph") {
|
||||||
const nextChild = children[i + 1];
|
const nextChild = children[i + 1];
|
||||||
|
|
||||||
if (nextChild.type !== "list") continue;
|
if (!nextChild || nextChild.type !== "list") continue;
|
||||||
|
|
||||||
ingredients.push({
|
ingredients.push({
|
||||||
name: getTextOfChild(child) || "",
|
name: getTextOfChild(child) || "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user