fix(route): Epic Games Store item link incorrect (#9822)
* fix(route): Epic Games Store * fix(route): Epic Games Store item link incorrect
This commit is contained in:
@@ -30,7 +30,9 @@ module.exports = async (ctx) => {
|
||||
.map((item) => ({
|
||||
title: item.title,
|
||||
author: item.seller.name,
|
||||
link: `${rootUrl}/${locale}/p/${item.catalogNs.mappings.length > 0 ? item.catalogNs.mappings[0].pageSlug : item.offerMappings.length > 0 ? item.offerMappings[0].pageSlug : item.urlSlug}`,
|
||||
link: `${rootUrl}/${locale}/p/${
|
||||
item.catalogNs.mappings.length > 0 ? item.catalogNs.mappings[0].pageSlug : item.offerMappings.length > 0 ? item.offerMappings[0].pageSlug : item.productSlug ? item.productSlug : item.urlSlug
|
||||
}`,
|
||||
description: art(path.join(__dirname, 'templates/description.art'), {
|
||||
description: item.description,
|
||||
image: item.keyImages[0].url,
|
||||
|
||||
Reference in New Issue
Block a user