fix: attachments download job trying to send function over ipc

pull/2330/head
Audric Ackermann 3 years ago
parent beb36c1a46
commit f84762c889
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -75,7 +75,7 @@ export async function addJob(attachment: any, job: any = {}) {
const toSave = { const toSave = {
...job, ...job,
id, id,
attachment, attachment: omit(attachment, ['toJSON']), // when addJob is called from the receiver we get an object with a toJSON call we don't care
timestamp, timestamp,
pending: 0, pending: 0,
attempts: 0, attempts: 0,

Loading…
Cancel
Save