UNPKG

@lucidcms/core

Version:

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

2 lines 388 B
import e from"../../libs/repositories/processed-images.mjs";import t from"../../libs/formatters/index.mjs";const n=async(n,r)=>{let i=await new e(n.db.client,n.config.db).count({where:[{key:`media_key`,operator:`=`,value:r.key}],validation:{enabled:!0}});return i.error?i:{error:void 0,data:t.parseCount(i.data?.count)}};export{n as default}; //# sourceMappingURL=get-single-count.mjs.map