fix(core): Stringify all Luxon DateTimes in cleanupParameterData (#8959)

This commit is contained in:
Elias Meire
2024-03-25 09:44:10 +01:00
committed by GitHub
parent 0e4216d7af
commit 1fb0dd4f1c
2 changed files with 12 additions and 1 deletions

View File

@@ -2112,7 +2112,7 @@ export function cleanupParameterData(inputData: NodeParameterValueType): void {
(Object.keys(inputData) as Key[]).forEach((key) => {
const value = inputData[key];
if (typeof value === 'object') {
if (value instanceof DateTime) {
if (DateTime.isDateTime(value)) {
// Is a special luxon date so convert to string
inputData[key] = value.toString();
} else {