Skip to content

Commit

Permalink
runfix: use conversation's qualified id
Browse files Browse the repository at this point in the history
  • Loading branch information
V-Gira committed Dec 12, 2024
1 parent 5a9153e commit e04fe25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/script/conversation/ConversationRoleRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class ConversationRoleRepository {
userId: QualifiedId,
conversationRole: string,
): Promise<void> => {
return this.conversationService.putMembers(conversation.id, userId, {
return this.conversationService.putMembers(conversation.qualifiedId, userId, {
conversation_role: conversationRole,
});
};
Expand Down
2 changes: 1 addition & 1 deletion src/script/conversation/ConversationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export class ConversationService {
return this.apiClient.api.conversation.deleteMember(conversationId, userId);
}

putMembers(conversationId: string, userId: QualifiedId, data: ConversationOtherMemberUpdateData): Promise<void> {
putMembers(conversationId: QualifiedId, userId: QualifiedId, data: ConversationOtherMemberUpdateData): Promise<void> {
return this.apiClient.api.conversation.putOtherMember(userId, conversationId, data);

Check failure on line 307 in src/script/conversation/ConversationService.ts

View workflow job for this annotation

GitHub Actions / test

Argument of type 'QualifiedId' is not assignable to parameter of type 'string'.
}

Expand Down

0 comments on commit e04fe25

Please sign in to comment.