mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-26 03:52:23 -08:00
👕 Fix lint issue
This commit is contained in:
parent
269bab679d
commit
a27ac0e203
|
@ -152,8 +152,8 @@ export class EmailSend implements INodeType {
|
||||||
if(credentials.user || credentials.password) {
|
if(credentials.user || credentials.password) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
connectionOptions.auth = {
|
connectionOptions.auth = {
|
||||||
user: credentials.user,
|
user: credentials.user as string,
|
||||||
pass: credentials.password
|
pass: credentials.password as string,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -816,9 +816,9 @@ export class Mandrill implements INodeType {
|
||||||
const metadataUi = this.getNodeParameter('metadataUi', i) as IDataObject;
|
const metadataUi = this.getNodeParameter('metadataUi', i) as IDataObject;
|
||||||
if (!_.isEmpty(metadataUi)) {
|
if (!_.isEmpty(metadataUi)) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
body.message.metadata = _.map(metadataUi.metadataValues, (o) => {
|
body.message.metadata = _.map(metadataUi.metadataValues, (o: IDataObject) => {
|
||||||
const aux: IDataObject = {};
|
const aux: IDataObject = {};
|
||||||
aux[o.name] = o.value;
|
aux[o.name as string] = o.value;
|
||||||
return aux;
|
return aux;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -826,7 +826,7 @@ export class Mandrill implements INodeType {
|
||||||
const mergeVarsUi = this.getNodeParameter('mergeVarsUi', i) as IDataObject;
|
const mergeVarsUi = this.getNodeParameter('mergeVarsUi', i) as IDataObject;
|
||||||
if (!_.isEmpty(mergeVarsUi)) {
|
if (!_.isEmpty(mergeVarsUi)) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
body.message.global_merge_vars = _.map(mergeVarsUi.mergeVarsValues, (o) => {
|
body.message.global_merge_vars = _.map(mergeVarsUi.mergeVarsValues, (o: IDataObject) => {
|
||||||
const aux: IDataObject = {};
|
const aux: IDataObject = {};
|
||||||
aux.name = o.name;
|
aux.name = o.name;
|
||||||
aux.content = o.content;
|
aux.content = o.content;
|
||||||
|
@ -835,13 +835,13 @@ export class Mandrill implements INodeType {
|
||||||
}
|
}
|
||||||
|
|
||||||
const attachmentsUi = this.getNodeParameter('attachmentsUi', i) as IDataObject;
|
const attachmentsUi = this.getNodeParameter('attachmentsUi', i) as IDataObject;
|
||||||
let attachmentsBinary = [], attachmentsValues = [];
|
let attachmentsBinary: Attachments[] = [], attachmentsValues: Attachments[] = [];
|
||||||
if (!_.isEmpty(attachmentsUi)) {
|
if (!_.isEmpty(attachmentsUi)) {
|
||||||
|
|
||||||
if (attachmentsUi.hasOwnProperty('attachmentsValues')
|
if (attachmentsUi.hasOwnProperty('attachmentsValues')
|
||||||
&& !_.isEmpty(attachmentsUi.attachmentsValues)) {
|
&& !_.isEmpty(attachmentsUi.attachmentsValues)) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
attachmentsValues = _.map(attachmentsUi.attachmentsValues, (o) => {
|
attachmentsValues = _.map(attachmentsUi.attachmentsValues, (o: IDataObject) => {
|
||||||
const aux: IDataObject = {};
|
const aux: IDataObject = {};
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
aux.name = o.name;
|
aux.name = o.name;
|
||||||
|
@ -855,12 +855,12 @@ export class Mandrill implements INodeType {
|
||||||
&& !_.isEmpty(attachmentsUi.attachmentsBinary)
|
&& !_.isEmpty(attachmentsUi.attachmentsBinary)
|
||||||
&& items[i].binary) {
|
&& items[i].binary) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
attachmentsBinary = _.map(attachmentsUi.attachmentsBinary, (o) => {
|
attachmentsBinary = _.map(attachmentsUi.attachmentsBinary, (o: IDataObject) => {
|
||||||
if (items[i].binary!.hasOwnProperty(o.property)) {
|
if (items[i].binary!.hasOwnProperty(o.property as string)) {
|
||||||
const aux: IDataObject = {};
|
const aux: IDataObject = {};
|
||||||
aux.name = items[i].binary![o.property].fileName || 'unknown';
|
aux.name = items[i].binary![o.property as string].fileName || 'unknown';
|
||||||
aux.content = items[i].binary![o.property].data;
|
aux.content = items[i].binary![o.property as string].data;
|
||||||
aux.type = items[i].binary![o.property].mimeType;
|
aux.type = items[i].binary![o.property as string].mimeType;
|
||||||
return aux;
|
return aux;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue