mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Remove unnecessary code
This commit is contained in:
@@ -259,12 +259,6 @@ export class Salesforce implements INodeType {
|
||||
// TODO: find a way to filter this object to get just the lead sources instead of the whole object
|
||||
const { fields } = await salesforceApiRequest.call(this, 'GET', '/sobjects/lead/describe');
|
||||
|
||||
for (const aja of fields as IDataObject[]) {
|
||||
if (aja.custom === true) {
|
||||
console.log(aja);
|
||||
}
|
||||
}
|
||||
|
||||
for (const field of fields) {
|
||||
if (field.name === 'LeadSource') {
|
||||
for (const pickValue of field.picklistValues) {
|
||||
|
||||
Reference in New Issue
Block a user