UNPKG

@lucidcms/core

Version:

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

2 lines 506 B
import e from"../../../libs/repositories/media.mjs";const t=async(t,n)=>{let r=await new e(t.db.client,t.config.db).updateSingle({where:[{key:`parent_media_id`,operator:`=`,value:n.parentId},{key:`relation_type`,operator:`=`,value:`crop`}],data:{is_deleted:!0,is_deleted_at:new Date().toISOString(),deleted_by:n.userId,updated_at:new Date().toISOString(),updated_by:n.userId},returning:[`id`]});return r.error?r:{error:void 0,data:void 0}};export{t as default}; //# sourceMappingURL=deactivate-crop.mjs.map