packages/automation-witness-server/src/JobQueue/scheduleJobs.ts
import type { JobQueue } from '@xyo-network/node-core-model'
import type { Job } from '@xyo-network/shared'
export const scheduleJobs = async (jobQueue: JobQueue, jobs: Job[]) => {
// eslint-disable-next-line unicorn/no-array-method-this-argument
await Promise.all(jobs.map(async job => await jobQueue.every(job.schedule, job.name)))
}