Skip to content

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

fix(nuq): use of reserved keyword O.o

Gergő Móricz8aa8632c68dd
diff --git a/apps/api/src/services/worker/nuq.ts b/apps/api/src/services/worker/nuq.ts
index b6545a4cf..af7bfb15b 100644
--- a/apps/api/src/services/worker/nuq.ts
+++ b/apps/api/src/services/worker/nuq.ts
@@ -915,11 +915,11 @@ class NuQ<JobData = any, JobReturnValue = any> {
WHERE owner_id IS NOT NULL
),
missing_owners AS (
- SELECT do.owner_id
- FROM distinct_owners do
+ SELECT d.owner_id
+ FROM distinct_owners d
WHERE NOT EXISTS (
SELECT 1 FROM ${this.queueName}_owner_concurrency oc
- WHERE oc.id = do.owner_id
+ WHERE oc.id = d.owner_id
)
),
ensure_owner_rows AS (
@@ -991,11 +991,11 @@ class NuQ<JobData = any, JobReturnValue = any> {
WHERE owner_id IS NOT NULL
),
missing_owners AS (
- SELECT do.owner_id
- FROM distinct_owners do
+ SELECT d.owner_id
+ FROM distinct_owners d
WHERE NOT EXISTS (
SELECT 1 FROM ${this.queueName}_owner_concurrency oc
- WHERE oc.id = do.owner_id
+ WHERE oc.id = d.owner_id
)
),
ensure_owner_rows AS (
@@ -1154,11 +1154,11 @@ class NuQ<JobData = any, JobReturnValue = any> {
WHERE owner_id IS NOT NULL
),
missing_owners AS (
- SELECT do.owner_id
- FROM distinct_owners do
+ SELECT d.owner_id
+ FROM distinct_owners d
WHERE NOT EXISTS (
SELECT 1 FROM ${this.queueName}_owner_concurrency oc
- WHERE oc.id = do.owner_id
+ WHERE oc.id = d.owner_id
)
),
ensure_owner_rows AS (
@@ -1226,11 +1226,11 @@ class NuQ<JobData = any, JobReturnValue = any> {
WHERE owner_id IS NOT NULL
),
missing_owners AS (
- SELECT do.owner_id
- FROM distinct_owners do
+ SELECT d.owner_id
+ FROM distinct_owners d
WHERE NOT EXISTS (
SELECT 1 FROM ${this.queueName}_owner_concurrency oc
- WHERE oc.id = do.owner_id
+ WHERE oc.id = d.owner_id
)
),
ensure_owner_rows AS (