Files
klz-cables.com/.pnpm-store/v10/files/9b/aa83d213b4edc081ef7c093dca9fb71c58bb4444dac1a3c4970c1c031ea46960f370d9e83d1ffd374665ac90e6d1001dcab5a16020188ed36fe4d8e68155ff
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
1.1 KiB
Plaintext

const e=require(`../../utils/throw-if-empty.cjs`),t=require(`../../utils/throw-core-collection.cjs`),n=(n,r,i,a)=>()=>{let o={};return e.throwIfEmpty(String(n),`Collection cannot be empty`),t.throwIfCoreCollection(n,`Cannot use updateItems for core collections`),Array.isArray(r)?(e.throwIfEmpty(r,`keysOrQuery cannot be empty`),o={keys:r}):(e.throwIfEmpty(Object.keys(r),`keysOrQuery cannot be empty`),o={query:r}),o.data=i,{path:`/items/${n}`,params:a??{},body:JSON.stringify(o),method:`PATCH`}},r=(n,r,i)=>()=>(e.throwIfEmpty(String(n),`Collection cannot be empty`),t.throwIfCoreCollection(n,`Cannot use updateItems for core collections`),{path:`/items/${n}`,params:i??{},body:JSON.stringify(r),method:`PATCH`}),i=(n,r,i,a)=>()=>(e.throwIfEmpty(String(r),`Key cannot be empty`),e.throwIfEmpty(String(n),`Collection cannot be empty`),t.throwIfCoreCollection(n,`Cannot use updateItem for core collections`),{path:`/items/${n}/${r}`,params:a??{},body:JSON.stringify(i),method:`PATCH`});exports.updateItem=i,exports.updateItems=n,exports.updateItemsBatch=r;
//# sourceMappingURL=items.cjs.map