From f84762c889cc160884d8830a85731a71bb7e6e17 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 19 May 2022 16:21:31 +1000 Subject: [PATCH] fix: attachments download job trying to send function over ipc --- ts/session/utils/AttachmentsDownload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/session/utils/AttachmentsDownload.ts b/ts/session/utils/AttachmentsDownload.ts index 8d2b78df7..940ba2bf9 100644 --- a/ts/session/utils/AttachmentsDownload.ts +++ b/ts/session/utils/AttachmentsDownload.ts @@ -75,7 +75,7 @@ export async function addJob(attachment: any, job: any = {}) { const toSave = { ...job, 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, pending: 0, attempts: 0,