UNPKG

@lucidcms/core

Version:

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

2 lines 766 B
import e from"./index.mjs";const t=e=>e.jobs.map(e=>n({job:e})),n=t=>({id:t.job.id,jobId:t.job.job_id,eventType:t.job.event_type,eventData:t.job.event_data,queueAdapterKey:t.job.queue_adapter_key,status:t.job.status,priority:t.job.priority,attempts:t.job.attempts,maxAttempts:t.job.max_attempts,errorMessage:t.job.error_message,createdAt:e.formatDate(t.job.created_at),scheduledFor:e.formatDate(t.job.scheduled_for),startedAt:e.formatDate(t.job.started_at),completedAt:e.formatDate(t.job.completed_at),failedAt:e.formatDate(t.job.failed_at),nextRetryAt:e.formatDate(t.job.next_retry_at),createdByUserId:t.job.created_by_user_id,updatedAt:e.formatDate(t.job.updated_at)});var r={formatMultiple:t,formatSingle:n};export{r as default}; //# sourceMappingURL=jobs.mjs.map