mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Run lintfix (no-changelog) (#7537)
- Fix autofixable violations - Remove unused directives - Allow for PascalCased variables - needed for dynamically imported or assigned classes, decorators, routers, etc.
This commit is contained in:
@@ -2854,7 +2854,7 @@ export class Salesforce implements INodeType {
|
||||
Name: name,
|
||||
ParentId: parentId,
|
||||
};
|
||||
if (items[i].binary && items[i].binary![binaryPropertyName]) {
|
||||
if (items[i].binary?.[binaryPropertyName]) {
|
||||
body.Body = items[i].binary![binaryPropertyName].data;
|
||||
body.ContentType = items[i].binary![binaryPropertyName].mimeType;
|
||||
} else {
|
||||
@@ -2887,7 +2887,7 @@ export class Salesforce implements INodeType {
|
||||
const body: IAttachment = {};
|
||||
if (updateFields.binaryPropertyName !== undefined) {
|
||||
const binaryPropertyName = updateFields.binaryPropertyName as string;
|
||||
if (items[i].binary && items[i].binary![binaryPropertyName]) {
|
||||
if (items[i].binary?.[binaryPropertyName]) {
|
||||
body.Body = items[i].binary![binaryPropertyName].data;
|
||||
body.ContentType = items[i].binary![binaryPropertyName].mimeType;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user