fix(Gmail Trigger Node): Don't return date instances, but date strings instead (#10582)

This commit is contained in:
Danny Martini
2024-08-28 15:43:04 +02:00
committed by GitHub
parent 3b43ff69a7
commit 9e1dac0465
2 changed files with 26 additions and 2 deletions

View File

@@ -202,6 +202,11 @@ export async function parseRawEmail(
headers,
headerLines: undefined,
attachments: undefined,
// Having data in IDataObjects that is not representable in JSON leads to
// inconsistencies between test executions and production executions.
// During a manual execution this would be stringified and during a
// production execution the next node would receive a date instance.
date: responseData.date ? responseData.date.toISOString() : responseData.date,
}) as IDataObject;
return {