Files
klz-cables.com/.pnpm-store/v10/files/fc/c433861ddbcca8c715542c0118fc566e626c545db17bcde847593c4354986ff82f026eb90f7b450e5c9913d341dbef879b3201db4d6641d70f132e7d047d8c
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

2 lines
441 B
Plaintext

const e=require(`../../utils/is-system-collection.cjs`),t=require(`../../utils/throw-if-empty.cjs`);require(`../../../index.cjs`);const n=(n,r)=>()=>{let i=String(n);return t.throwIfEmpty(i,`Collection cannot be empty`),{path:e.isSystemCollection(i)?`/${i.substring(9)}`:`/items/${i}`,method:`GET`,params:{...r.query??{},...r.groupBy?{groupBy:r.groupBy}:{},aggregate:r.aggregate}}};exports.aggregate=n;
//# sourceMappingURL=aggregate.cjs.map