mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-23 11:44:06 -08:00
Salesforce Custom Object Get All : Fix TypeError: options.fields.split is not a function
This commit is contained in:
parent
7c21e61151
commit
3cb8cd115e
|
@ -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(','));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue