Skip to content

Commit

Permalink
add domainId to reader url
Browse files Browse the repository at this point in the history
Signed-off-by: ianmuchyri <[email protected]>
  • Loading branch information
ianmuchyri committed Jan 24, 2025
1 parent 6e1efa5 commit 8729f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sdk/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (sdk mgSDK) ReadMessages(pm MessagePageMetadata, chanName, domainID, token
subtopicPart = fmt.Sprintf("?subtopic=%s", chanNameParts[1])
}

msgURL, err := sdk.withMessageQueryParams(sdk.readersURL, fmt.Sprintf("channels/%s/messages%s", chanID, subtopicPart), pm)
msgURL, err := sdk.withMessageQueryParams(sdk.readersURL, fmt.Sprintf("/%s/channels/%s/messages%s", domainID, chanID, subtopicPart), pm)
if err != nil {
return MessagesPage{}, errors.NewSDKError(err)
}
Expand Down

0 comments on commit 8729f9d

Please sign in to comment.