pim-import 2.50.4 → 2.50.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1032,7 +1032,7 @@ const generateTechSpecPdf = async (topicProductId) => {
|
|
|
1032
1032
|
const defaultEnvironmentLocaleCode = await contentful_1.getEnvironmentDefaultLocaleCode();
|
|
1033
1033
|
const topicCatalogIds = topicProduct?.fields?.catalogs?.[defaultEnvironmentLocaleCode]?.map((catalog) => catalog.sys.id);
|
|
1034
1034
|
const pageSlug = topicProductPage?.fields?.slug[defaultEnvironmentLocaleCode];
|
|
1035
|
-
const fileName = pageSlug.length >=
|
|
1035
|
+
const fileName = pageSlug.length >= 180
|
|
1036
1036
|
? `tech-spec-${topicProductId}`
|
|
1037
1037
|
: `tech-spec-${pageSlug}`;
|
|
1038
1038
|
let baseUrl = process.env.FPI_TECH_SPEC_BASE_URL ?? "";
|
package/package.json
CHANGED
|
@@ -1771,7 +1771,7 @@ export const generateTechSpecPdf = async (topicProductId: string) => {
|
|
|
1771
1771
|
const pageSlug = topicProductPage?.fields?.slug[defaultEnvironmentLocaleCode];
|
|
1772
1772
|
|
|
1773
1773
|
const fileName =
|
|
1774
|
-
pageSlug.length >=
|
|
1774
|
+
pageSlug.length >= 180
|
|
1775
1775
|
? `tech-spec-${topicProductId}`
|
|
1776
1776
|
: `tech-spec-${pageSlug}`; // 57 caratteri è il resto dell'url di S3
|
|
1777
1777
|
let baseUrl = process.env.FPI_TECH_SPEC_BASE_URL ?? "";
|