(job: QueueJob)
| 44 | }; |
| 45 | |
| 46 | export const removeJob = async (job: QueueJob) => { |
| 47 | try { |
| 48 | const result = await fetch(`${process.env.JOBS_URL}/remove-job`, { |
| 49 | method: "POST", |
| 50 | headers: { |
| 51 | "Content-Type": "application/json", |
| 52 | "X-API-Key": process.env.API_KEY || "NO-DEFINED", |
| 53 | }, |
| 54 | body: JSON.stringify(job), |
| 55 | }); |
| 56 | const data = await result.json(); |
| 57 | return data; |
| 58 | } catch (error) { |
| 59 | throw error; |
| 60 | } |
| 61 | }; |
| 62 | |
| 63 | export const updateJob = async (job: QueueJob) => { |
| 64 | try { |
no outgoing calls
no test coverage detected