mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
👕 Fix lint issue
This commit is contained in:
parent
34f69fd652
commit
8475923ebd
|
@ -23,7 +23,7 @@ import {
|
||||||
IEmail,
|
IEmail,
|
||||||
} from './Gmail.node';
|
} from './Gmail.node';
|
||||||
|
|
||||||
const MailComposer = require("nodemailer/lib/mail-composer");
|
const mailComposer = require('nodemailer/lib/mail-composer');
|
||||||
|
|
||||||
export async function googleApiRequest(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, method: string,
|
export async function googleApiRequest(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, method: string,
|
||||||
endpoint: string, body: any = {}, qs: IDataObject = {}, uri?: string, option: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any
|
endpoint: string, body: any = {}, qs: IDataObject = {}, uri?: string, option: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any
|
||||||
|
@ -152,8 +152,8 @@ export async function encodeEmail(email: IEmail) {
|
||||||
mailOptions.attachments = attachments;
|
mailOptions.attachments = attachments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const mail = new MailComposer(mailOptions);
|
const mail = new mailComposer(mailOptions);
|
||||||
|
|
||||||
mailBody = await new Promise((resolve) => {
|
mailBody = await new Promise((resolve) => {
|
||||||
mail.compile().build(async (err: string, result: Buffer) => {
|
mail.compile().build(async (err: string, result: Buffer) => {
|
||||||
|
@ -161,7 +161,7 @@ export async function encodeEmail(email: IEmail) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
return mailBody.toString("base64").replace(/\+/g, '-').replace(/\//g, '_');
|
return mailBody.toString('base64').replace(/\+/g, '-').replace(/\//g, '_');
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function googleApiRequestAllItems(this: IExecuteFunctions | ILoadOptionsFunctions, propertyName: string, method: string, endpoint: string, body: any = {}, query: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any
|
export async function googleApiRequestAllItems(this: IExecuteFunctions | ILoadOptionsFunctions, propertyName: string, method: string, endpoint: string, body: any = {}, query: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any
|
||||||
|
|
Loading…
Reference in a new issue