Skip to content

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

fix(api): getBackloggedJobIDsOfOwner method name (#2939)

tomsideguidea8e59344642c
diff --git a/apps/api/src/lib/concurrency-queue-reconciler.ts b/apps/api/src/lib/concurrency-queue-reconciler.ts
index 8c3975116..b22bf4e1e 100644
--- a/apps/api/src/lib/concurrency-queue-reconciler.ts
+++ b/apps/api/src/lib/concurrency-queue-reconciler.ts
@@ -80,7 +80,7 @@ async function reconcileTeam(
teamLogger: Logger,
): Promise<{ jobsStarted: number; jobsRequeued: number } | null> {
const backloggedJobIDs = new Set(
- await scrapeQueue.getBackloggedJobIDsOfOnwer(ownerId, teamLogger),
+ await scrapeQueue.getBackloggedJobIDsOfOwner(ownerId, teamLogger),
);
if (backloggedJobIDs.size === 0) {
return null;
diff --git a/apps/api/src/services/worker/nuq.ts b/apps/api/src/services/worker/nuq.ts
index 060fd7568..934689096 100644
--- a/apps/api/src/services/worker/nuq.ts
+++ b/apps/api/src/services/worker/nuq.ts
@@ -657,7 +657,7 @@ class NuQ<JobData = any, JobReturnValue = any> {
}
}
- public async getBackloggedJobIDsOfOnwer(
+ public async getBackloggedJobIDsOfOwner(
ownerId: string,
_logger: Logger = logger,
): Promise<string[]> {
@@ -670,9 +670,9 @@ class NuQ<JobData = any, JobReturnValue = any> {
)
).rows.map(row => row.id);
} finally {
- _logger.info("nuqGetBackloggedJobIDsOfOnwer metrics", {
+ _logger.info("nuqGetBackloggedJobIDsOfOwner metrics", {
module: "nuq/metrics",
- method: "nuqGetBackloggedJobIDsOfOnwer",
+ method: "nuqGetBackloggedJobIDsOfOwner",
duration: Date.now() - start,
ownerId,
});