🔀 Merge branch 'fix/salesforce-customobject-getall' of https://github.com/camcelroy/n8n into camcelroy-fix/salesforce-customobject-getall

This commit is contained in:
Jan Oberhauser 2021-03-18 10:58:32 +01:00
commit f6938a8d48

View file

@ -163,7 +163,7 @@ export function getDefaultFields(sobject: string) {
export function getQuery(options: IDataObject, sobject: string, returnAll: boolean, limit = 0) {
const fields: string[] = [];
if (options.fields) {
fields.push.apply(fields, (options.fields as string).split(','));
fields.push.apply(fields, options.fields.toString().split(','));
} else {
fields.push.apply(fields, (getDefaultFields(sobject) as string || 'id').split(','));
}