remove faulty date input transformation with moment

This commit is contained in:
Christoph Dyllick-Brenzinger 2024-08-16 10:27:27 +02:00
parent 861691cf63
commit 19c8e5f3fb

View file

@ -11,7 +11,6 @@ import type {
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
import moment from 'moment';
import type { TDtableMetadataColumns, TEndpointVariableName } from './types';
import { schema } from './Schema';
@ -126,7 +125,7 @@ export async function seaTableApiRequest(
}
// DEBUG-MODE OR API-REQUESTS
//console.log(options);
// console.log(options);
if (Object.keys(body).length === 0) {
delete options.body;
@ -327,12 +326,6 @@ export function splitStringColumnsToArrays(
}
}
}
if (column.type == 'date') {
if (typeof row[column.name] === 'string') {
const input = row[column.name] as string;
row[column.name] = moment(input, 'YYYY-mm-dd', true);
}
}
});
return row;
}