mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +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:
@@ -359,13 +359,13 @@ export class EmailReadImapV2 implements INodeType {
|
||||
?.filename as string,
|
||||
);
|
||||
// Return it in the format n8n expects
|
||||
return this.helpers.prepareBinaryData(partData as Buffer, fileName);
|
||||
return await this.helpers.prepareBinaryData(partData as Buffer, fileName);
|
||||
});
|
||||
|
||||
attachmentPromises.push(attachmentPromise);
|
||||
}
|
||||
|
||||
return Promise.all(attachmentPromises);
|
||||
return await Promise.all(attachmentPromises);
|
||||
};
|
||||
|
||||
// Returns all the new unseen messages
|
||||
@@ -618,7 +618,7 @@ export class EmailReadImapV2 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('close', async (_hadError: boolean) => {
|
||||
if (isCurrentlyReconnecting) {
|
||||
this.logger.debug('Email Read Imap: Connected closed for forced reconnecting');
|
||||
|
||||
Reference in New Issue
Block a user