Skip to content

Commit 0bdfb4a

Browse files
fix(auto-reply): guard missing dispatcher getFailedCounts without weakening the SDK type
1 parent 1448788 commit 0bdfb4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/auto-reply/reply/dispatch-from-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ export function getDispatcherFinalOutcomeCounts(dispatcher: DispatcherOutcomeCou
785785
} {
786786
return {
787787
cancelled: dispatcher.getCancelledCounts?.().final ?? 0,
788-
failed: dispatcher.getFailedCounts?.().final ?? 0,
788+
failed: readDispatcherFailedCounts(dispatcher).final,
789789
};
790790
}
791791

0 commit comments

Comments
 (0)