UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 441 B
import e from"../../libs/repositories/document-workflows.mjs";const t=async(t,n)=>{if(n.documentIds.length===0)return{error:void 0,data:void 0};let r=await new e(t.db.client,t.config.db).deleteMultiple({where:[{key:`collection_key`,operator:`=`,value:n.collectionKey},{key:`document_id`,operator:`in`,value:n.documentIds}]});return r.error?r:{error:void 0,data:void 0}};export{t as default}; //# sourceMappingURL=delete-for-documents.mjs.map