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
2 lines
525 B
Plaintext
2 lines
525 B
Plaintext
const e=require(`../../utils/is-system-collection.cjs`),t=(t,n,r)=>()=>{let i=String(t);if(e.isSystemCollection(i))throw Error(`Cannot use createItems for core collections`);return{path:`/items/${i}`,params:r??{},body:JSON.stringify(n),method:`POST`}},n=(t,n,r)=>()=>{let i=String(t);if(e.isSystemCollection(i))throw Error(`Cannot use createItem for core collections`);return{path:`/items/${i}`,params:r??{},body:JSON.stringify(n),method:`POST`}};exports.createItem=n,exports.createItems=t;
|
|
//# sourceMappingURL=items.cjs.map |