Typings: annotate job param as any in queue worker
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ export const queueScheduler = new QueueScheduler("analyze", { connection: redis
|
|||||||
// Worker to process analyze jobs
|
// Worker to process analyze jobs
|
||||||
export const worker = new Worker(
|
export const worker = new Worker(
|
||||||
"analyze",
|
"analyze",
|
||||||
async (job) => {
|
async (job: any) => {
|
||||||
console.log("[queue] Processing analyze job", job.id, job.data.ticker);
|
console.log("[queue] Processing analyze job", job.id, job.data.ticker);
|
||||||
const { ticker, input } = job.data as { ticker: string; input: any };
|
const { ticker, input } = job.data as { ticker: string; input: any };
|
||||||
const apiKey = process.env.OPENROUTER_API_KEY;
|
const apiKey = process.env.OPENROUTER_API_KEY;
|
||||||
|
|||||||
Reference in New Issue
Block a user