diff --git a/backend/src/tools/koepi/routes.js b/backend/src/tools/koepi/routes.js index a8df527..6f29d9f 100644 --- a/backend/src/tools/koepi/routes.js +++ b/backend/src/tools/koepi/routes.js @@ -196,9 +196,9 @@ async function scrapeProspekte() { if (!nextData) continue; const pp = nextData.props?.pageProps; - const contents = pp?.pageInformation?.template?.shelfContents?.contents + const contents = pp?.pageInformation?.shelfContents?.contents + || pp?.pageInformation?.template?.shelfContents?.contents || pp?.pageInformation?.template?.content?.shelfContents?.contents - || pp?.shelfContents?.contents || []; for (const item of contents) {