mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Add more overloads for string-type node parameters (no-changelog) (#5101)
* refactor(core): Add more overloads for string-type node parameter (no-changelog) continued from https://github.com/n8n-io/n8n/pull/4797 * include binaryPropertyOutput
This commit is contained in:
committed by
GitHub
parent
c97f3cad59
commit
1acc7fea89
@@ -376,7 +376,7 @@ export class DateTime implements INodeType {
|
||||
|
||||
if (action === 'format') {
|
||||
const currentDate = this.getNodeParameter('value', i) as string;
|
||||
const dataPropertyName = this.getNodeParameter('dataPropertyName', i) as string;
|
||||
const dataPropertyName = this.getNodeParameter('dataPropertyName', i);
|
||||
const toFormat = this.getNodeParameter('toFormat', i) as string;
|
||||
const options = this.getNodeParameter('options', i);
|
||||
let newDate;
|
||||
@@ -461,7 +461,7 @@ export class DateTime implements INodeType {
|
||||
const duration = this.getNodeParameter('duration', i) as number;
|
||||
const timeUnit = this.getNodeParameter('timeUnit', i) as moment.DurationInputArg2;
|
||||
const { fromFormat } = this.getNodeParameter('options', i) as { fromFormat?: string };
|
||||
const dataPropertyName = this.getNodeParameter('dataPropertyName', i) as string;
|
||||
const dataPropertyName = this.getNodeParameter('dataPropertyName', i);
|
||||
|
||||
const newDate = fromFormat
|
||||
? parseDateByFormat.call(this, dateValue, fromFormat)
|
||||
|
||||
Reference in New Issue
Block a user