@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 745 B
JavaScript
import{copy as e}from"../../libs/i18n/copy.mjs";import t from"../../libs/repositories/queue-jobs.mjs";import n from"../../libs/formatters/jobs.mjs";const r=async(r,i)=>{let a=await new t(r.db.client,r.config.db).selectSingleById({select:[`id`,`job_id`,`event_type`,`event_data`,`queue_adapter_key`,`status`,`priority`,`attempts`,`max_attempts`,`error_message`,`created_at`,`scheduled_for`,`started_at`,`completed_at`,`failed_at`,`next_retry_at`,`created_by_user_id`,`updated_at`],id:i.id,tenantKey:r.request.tenantKey,validation:{enabled:!0,defaultError:{message:e(`server:core.job.not.found.message`),status:404}}});return a.error?a:{error:void 0,data:n.formatSingle({job:a.data})}};export{r as default};
//# sourceMappingURL=get-single.mjs.map