@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 344 B
JavaScript
import e from"../../../libs/repositories/collections.mjs";const t=async(t,n)=>{let r=await new e(t.db.client,t.config.db).deleteSingle({where:[{key:`key`,operator:`=`,value:n.collectionKey}],returning:[`key`],validation:{enabled:!0}});return r.error?r:{error:void 0,data:void 0}};export{t as default};
//# sourceMappingURL=delete-single.mjs.map