Skip to content

Commit 74ff2b5

Browse files
committed
fix(knowledge): rename jobIds to batchIds in processDocumentsWithTrigger return type
1 parent 0e8a2d7 commit 74ff2b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/sim/lib/knowledge/documents/service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ export function isTriggerAvailable(): boolean {
668668
export async function processDocumentsWithTrigger(
669669
documents: DocumentProcessingPayload[],
670670
requestId: string
671-
): Promise<{ success: boolean; message: string; jobIds?: string[] }> {
671+
): Promise<{ success: boolean; message: string; batchIds?: string[] }> {
672672
if (!isTriggerAvailable()) {
673673
throw new Error('Trigger.dev is not configured - TRIGGER_SECRET_KEY missing')
674674
}
@@ -700,7 +700,7 @@ export async function processDocumentsWithTrigger(
700700
return {
701701
success: true,
702702
message: `${documents.length} document processing jobs triggered`,
703-
jobIds: batchIds,
703+
batchIds,
704704
}
705705
} catch (error) {
706706
logger.error(`[${requestId}] Failed to trigger document processing jobs:`, error)

0 commit comments

Comments
 (0)