mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
🔀 Merge branch 'camcelroy-fix/salesforce-customobject-getall'
This commit is contained in:
commit
dbe70ea1e0
|
@ -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 as string[]);
|
||||
} else {
|
||||
fields.push.apply(fields, (getDefaultFields(sobject) as string || 'id').split(','));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue