mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +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
|
// 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');
|
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) {
|
for (const field of fields) {
|
||||||
if (field.name === 'LeadSource') {
|
if (field.name === 'LeadSource') {
|
||||||
for (const pickValue of field.picklistValues) {
|
for (const pickValue of field.picklistValues) {
|
||||||
|
|||||||
Reference in New Issue
Block a user