Skip to content

Commit

Permalink
Update merged code with new package exports
Browse files Browse the repository at this point in the history
  • Loading branch information
asein-sinch committed Apr 12, 2024
1 parent d78a7fc commit 5539227
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/conversation/src/rest/v1/messages/messages-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
SendListMessageRequestData,
SendLocationMessageRequestData,
SendMediaMessageRequestData,
SendMessageRequest,
SendMessageRequestData,
SendMessageResponse,
SendTemplateMessageRequestData,
Expand Down Expand Up @@ -294,7 +295,7 @@ export class MessagesApi extends ConversationDomainApi {
}

performSendMessageRequestBodyTransformation(
body: SendMessageRequest<Recipient>
body: SendMessageRequest<Recipient>,
): SendMessageRequest<Recipient> {
const requestDataBody = { ...body };
// 'ttl' field can be a number or a string and needs to be formatted as for instance "10s" to be accepted by the server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ describe('MessagesApi', () => {
});

it('should format the ttl field', () => {
const requestBody: SendMessageRequest<Recipient> = {
const requestBody: Conversation.SendMessageRequest<Conversation.Recipient> = {
...sendMessageRequest,
...recipientContactId,
};
Expand Down

0 comments on commit 5539227

Please sign in to comment.