refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)

This commit is contained in:
Michael Kret
2023-01-13 19:11:56 +02:00
committed by GitHub
parent d7732ea150
commit 6608e69457
254 changed files with 2687 additions and 2675 deletions

View File

@@ -88,9 +88,7 @@ export class RedisTrigger implements INodeType {
const client = redis.createClient(redisOptions);
const self = this;
async function manualTriggerFunction() {
const manualTriggerFunction = async () => {
await new Promise((resolve, reject) => {
client.on('connect', () => {
for (const channel of channels) {
@@ -104,12 +102,12 @@ export class RedisTrigger implements INodeType {
}
if (options.onlyMessage) {
self.emit([self.helpers.returnJsonArray({ message })]);
this.emit([this.helpers.returnJsonArray({ message })]);
resolve(true);
return;
}
self.emit([self.helpers.returnJsonArray({ channel, message })]);
this.emit([this.helpers.returnJsonArray({ channel, message })]);
resolve(true);
});
});
@@ -118,7 +116,7 @@ export class RedisTrigger implements INodeType {
reject(error);
});
});
}
};
if (this.getMode() === 'trigger') {
await manualTriggerFunction();