UNPKG

@lucidcms/core

Version:

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

2 lines 451 B
import e from"../../libs/repositories/preview-sessions.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:`entry_collection_key`,operator:`=`,value:n.collectionKey},{key:`entry_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