From eb120e03f93dfbb6d15058eb9b2350975a454854 Mon Sep 17 00:00:00 2001 From: Nishant Singh <57475999+Rjnishant530@users.noreply.github.com> Date: Mon, 14 Jul 2025 08:16:10 +0530 Subject: [PATCH] fix(route/Visionias): weekly feed template fix (#19597) * add more routes * use flatMap * fix the template miss during build * fix the template miss during build --- lib/routes/visionias/utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/routes/visionias/utils.ts b/lib/routes/visionias/utils.ts index afb9c187f3..2ce3cfa9c6 100644 --- a/lib/routes/visionias/utils.ts +++ b/lib/routes/visionias/utils.ts @@ -37,7 +37,7 @@ export async function extractNews(item, selector) { ?.nextAll('li') .toArray() .map((tag) => $$(tag).text()); - const description = art(path.join(__dirname, `templates/description.art`), { + const description = art(path.join(__dirname, 'templates/description.art'), { heading: title, articleContent: htmlContent, }); @@ -71,13 +71,13 @@ export async function extractNews(item, selector) { const mainDiv = $$(element); const title = mainDiv.find('a > div > h2').text().trim(); const htmlContent = extractArticle(mainDiv.html(), 'div.ck-content'); - const description = art(path.join(__dirname, `templates/description-sub.art`), { + const description = art(path.join(__dirname, 'templates/description-sub.art'), { heading: title, articleContent: htmlContent, }); return { description }; }); - const description = art(path.join(__dirname, `templates/description.art`), { + const description = art(path.join(__dirname, 'templates/description.art'), { heading, subItems: items, });