@websolutespa/bom-mixer-models 1.7.7 → 1.7.8
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.
- package/CHANGELOG.md +9 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/route/route.service.ts +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -293,7 +293,7 @@ async function getRouteLinkTree(market, locale) {
|
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
});
|
|
296
|
-
const categories = await store.category.findMany();
|
|
296
|
+
const categories = await store.category.findMany({ market, locale });
|
|
297
297
|
const rootCategory = (0, import_bom_core2.getRootCategory)(categories);
|
|
298
298
|
if (rootCategory) {
|
|
299
299
|
const root = categoryToRouteLink(routes, categories, rootCategory, locale);
|
package/dist/index.mjs
CHANGED
|
@@ -192,7 +192,7 @@ async function getRouteLinkTree(market, locale) {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
|
-
const categories = await store.category.findMany();
|
|
195
|
+
const categories = await store.category.findMany({ market, locale });
|
|
196
196
|
const rootCategory = getRootCategory(categories);
|
|
197
197
|
if (rootCategory) {
|
|
198
198
|
const root = categoryToRouteLink(routes, categories, rootCategory, locale);
|
package/package.json
CHANGED
|
@@ -126,7 +126,7 @@ export async function getRouteLinkTree(market: string, locale: string): Promise<
|
|
|
126
126
|
},
|
|
127
127
|
});
|
|
128
128
|
// console.log('getRouteLinkTree.routes', routes);
|
|
129
|
-
const categories = await store.category.findMany();
|
|
129
|
+
const categories = await store.category.findMany({ market, locale });
|
|
130
130
|
// console.log('getRouteLinkTree.categories', categories);
|
|
131
131
|
const rootCategory = getRootCategory(categories);
|
|
132
132
|
// console.log('getRouteLinkTree.rootCategory', rootCategory);
|