mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix: Set '@typescript-eslint/return-await' rule to 'always' for node code (no-changelog) (#8363)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -332,7 +332,7 @@ export class EmailReadImapV1 implements INodeType {
|
||||
.getPartData(message, attachmentPart)
|
||||
.then(async (partData) => {
|
||||
// Return it in the format n8n expects
|
||||
return this.helpers.prepareBinaryData(
|
||||
return await this.helpers.prepareBinaryData(
|
||||
partData as Buffer,
|
||||
attachmentPart.disposition.params.filename as string,
|
||||
);
|
||||
@@ -341,7 +341,7 @@ export class EmailReadImapV1 implements INodeType {
|
||||
attachmentPromises.push(attachmentPromise);
|
||||
}
|
||||
|
||||
return Promise.all(attachmentPromises);
|
||||
return await Promise.all(attachmentPromises);
|
||||
};
|
||||
|
||||
// Returns all the new unseen messages
|
||||
@@ -588,7 +588,7 @@ export class EmailReadImapV1 implements INodeType {
|
||||
|
||||
// Connect to the IMAP server and open the mailbox
|
||||
// that we get informed whenever a new email arrives
|
||||
return imapConnect(config).then(async (conn) => {
|
||||
return await imapConnect(config).then(async (conn) => {
|
||||
conn.on('error', async (error) => {
|
||||
const errorCode = error.code.toUpperCase();
|
||||
if (['ECONNRESET', 'EPIPE'].includes(errorCode as string)) {
|
||||
|
||||
Reference in New Issue
Block a user