Skip to content

Commit b628c9c

Browse files
VoloVolo
authored andcommitted
Fix wrong type for Conversation list; Ignore no await in scroll
1 parent c9fc5bf commit b628c9c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/conversation.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Client from './client';
22
import {
3-
Paginated,
43
StringifiedTimestamp,
54
GenericSearchFilters,
65
Order,
@@ -525,7 +524,9 @@ interface ListConversationData {
525524
perPage?: number;
526525
}
527526

528-
type ListConversationResponse = Paginated<ConversationObjectWithoutParts>;
527+
type ListConversationResponse = PaginatedBase & {
528+
conversations: ConversationObjectWithoutParts[];
529+
};
529530
//
530531
export enum RedactConversationPartType {
531532
CONVERSATION_PART = 'conversation_part',

lib/scroll.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default class Scroll<EntityType> {
1010
this.scrollParam = scrollParam;
1111
}
1212

13+
// eslint-disable-next-line require-await
1314
async each(params: EachData): Promise<EntityType[]> {
1415
this.scrollParam = params.scrollParam ?? undefined;
1516

0 commit comments

Comments
 (0)