UNPKG

@lucidcms/core

Version:

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

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