🔀 Merge branch 'camcelroy-fix/salesforce-customobject-getall'

This commit is contained in:
Jan Oberhauser 2021-03-18 11:02:40 +01:00
commit dbe70ea1e0

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 as string[]);
} else {
fields.push.apply(fields, (getDefaultFields(sobject) as string || 'id').split(','));
}