UNPKG

@lucidcms/core

Version:

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

2 lines 553 B
import{copy as e}from"../../libs/i18n/copy.mjs";import t from"../../libs/repositories/client-integrations.mjs";import n from"../../libs/formatters/client-integrations.mjs";const r=async(r,i)=>{let a=await new t(r.db.client,r.config.db).selectSingleByIdWithScopes({id:i.id,tenantKey:r.request.tenantKey,validation:{enabled:!0,defaultError:{message:e(`server:core.client.integrations.not.found.message`),status:404}}});return a.error?a:{error:void 0,data:n.formatSingle({integration:a.data})}};export{r as default}; //# sourceMappingURL=get-single.mjs.map