diff --git a/apps/server/src/routes/agent/index.ts b/apps/server/src/routes/agent/index.ts index d1e074fa8d..6123dd71d8 100644 --- a/apps/server/src/routes/agent/index.ts +++ b/apps/server/src/routes/agent/index.ts @@ -474,7 +474,7 @@ export class ZeroDriver extends AIChatAgent { // Process threads one by one without buffering for await (const thread of this.streamThreads(folder)) { try { - const id = await this.queue('syncThread', thread.id); + const id = await this.queue('syncThread', { threadId: thread.id }); console.log(`Synced thread ${thread.id} to queue ${id}`); totalSynced++; } catch (error) {