From ead13bf17a66d62676cd24cf664cc29ec5eae21a Mon Sep 17 00:00:00 2001 From: Dicken Date: Wed, 8 Jul 2026 12:19:19 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20K=C3=B6Pi=20-=20korrekter=20Pfad=20f?= =?UTF-8?q?=C3=BCr=20shelfContents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/tools/koepi/routes.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/tools/koepi/routes.js b/backend/src/tools/koepi/routes.js index b9788f6..b1125fa 100644 --- a/backend/src/tools/koepi/routes.js +++ b/backend/src/tools/koepi/routes.js @@ -195,8 +195,9 @@ async function scrapeProspekte() { const nextData = extractNextData(body); if (!nextData) continue; - const contents = nextData.props?.pageProps?.pageInformation?.template?.content?.shelfContents?.contents - || nextData.props?.pageProps?.shelfContents?.contents + const pp = nextData.props?.pageProps; + const contents = pp?.pageInformation?.template?.content?.shelfContents?.contents + || pp?.shelfContents?.contents || []; for (const item of contents) {