Skip to content

Commit a4abdf9

Browse files
committed
Dont push empty conversations
1 parent 0aff3ae commit a4abdf9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

integrations/zendesk-conversations/src/conversations.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ export async function ingestTickets(
3434
concurrency: 3
3535
});
3636

37-
await onConversations(conversations);
37+
if (conversations.length > 0) {
38+
await onConversations(conversations);
39+
}
3840
} while (ticketsIngested < options.maxTickets && !!cursor);
3941
}
4042

0 commit comments

Comments
 (0)