mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(Gmail Trigger Node): Don't return date instances, but date strings instead (#10582)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user