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:
@@ -36,7 +36,7 @@ export async function rabbitmqConnect(
|
||||
}
|
||||
}
|
||||
|
||||
return new Promise(async (resolve, reject) => {
|
||||
return await new Promise(async (resolve, reject) => {
|
||||
try {
|
||||
const connection = await amqplib.connect(credentialData, optsData);
|
||||
|
||||
@@ -73,7 +73,7 @@ export async function rabbitmqConnectQueue(
|
||||
): Promise<amqplib.Channel> {
|
||||
const channel = await rabbitmqConnect.call(this, options);
|
||||
|
||||
return new Promise(async (resolve, reject) => {
|
||||
return await new Promise(async (resolve, reject) => {
|
||||
try {
|
||||
await channel.assertQueue(queue, options);
|
||||
|
||||
@@ -104,7 +104,7 @@ export async function rabbitmqConnectExchange(
|
||||
): Promise<amqplib.Channel> {
|
||||
const channel = await rabbitmqConnect.call(this, options);
|
||||
|
||||
return new Promise(async (resolve, reject) => {
|
||||
return await new Promise(async (resolve, reject) => {
|
||||
try {
|
||||
await channel.assertExchange(exchange, type, options);
|
||||
resolve(channel);
|
||||
|
||||
Reference in New Issue
Block a user