UNPKG

@lucidcms/core

Version:

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

2 lines 318 B
import e from"../../../libs/repositories/media.mjs";const t=async(t,n)=>{let r=await new e(t.db.client,t.config.db).selectSingleById({id:n.mediaId,tenantKey:t.request.tenantKey,validation:{enabled:!0}});return r.error?r:{error:void 0,data:void 0}};export{t as default}; //# sourceMappingURL=assert-media-access.mjs.map