Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(nuq):

Gergő Móricze8bbd42ef80a
diff --git a/apps/api/src/services/worker/nuq.ts b/apps/api/src/services/worker/nuq.ts
index 6ca177d20..768d78d62 100644
--- a/apps/api/src/services/worker/nuq.ts
+++ b/apps/api/src/services/worker/nuq.ts
@@ -146,8 +146,8 @@ class NuQ<JobData = any, JobReturnValue = any> {
return;
}.bind(this);
- connection.on("close", onClose);
- channel.on("close", onClose);
+ this.listener.connection.on("close", onClose);
+ this.listener.channel.on("close", onClose);
await this.listener.channel.consume(
this.listener.queue,