mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
remove faulty date input transformation with moment
This commit is contained in:
parent
861691cf63
commit
19c8e5f3fb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue