Skip to content

Commit 6f7269c

Browse files
authored
feat: Feeds 1024 return the updated poll when castingremoving vote (#203)
🎫 Ticket: https://linear.app/stream/issue/FEEDS-1024/return-the-updated-poll-when-castingremoving-vote 📑 Docs: https://github.com/GetStream/docs-content/pull/<id> ### 💡 Overview ### 📝 Implementation notes
1 parent 7c19052 commit 6f7269c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/feeds-client/src/gen/model-decoders/decoders.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,8 @@ decoders.PollVoteRemovedFeedEvent = (input?: Record<string, any>) => {
15711571

15721572
decoders.PollVoteResponse = (input?: Record<string, any>) => {
15731573
const typeMappings: TypeMapping = {
1574+
poll: { type: 'PollResponseData', isSingle: true },
1575+
15741576
vote: { type: 'PollVoteResponseData', isSingle: true },
15751577
};
15761578
return decode(typeMappings, input);

packages/feeds-client/src/gen/models/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4433,6 +4433,8 @@ export interface PollVoteRemovedFeedEvent {
44334433
export interface PollVoteResponse {
44344434
duration: string;
44354435

4436+
poll?: PollResponseData;
4437+
44364438
vote?: PollVoteResponseData;
44374439
}
44384440

0 commit comments

Comments
 (0)