🐛 Fix bug filtering date and datetime fields on Salesforce node (#2565)

This commit is contained in:
Ricardo Espinoza 2022-01-16 08:27:20 -05:00 committed by GitHub
parent 7efb73053d
commit 6066b6670e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,7 +191,9 @@ export function getQuery(options: IDataObject, sobject: string, returnAll: boole
} }
export function getValue(value: any) { // tslint:disable-line:no-any export function getValue(value: any) { // tslint:disable-line:no-any
if (typeof value === 'string') { if (moment(value).isValid()) {
return value;
} else if (typeof value === 'string') {
return `'${value}'`; return `'${value}'`;
} else { } else {
return value; return value;