Skip to content

Commit

Permalink
Remove domain prefix from list domain users URL (#77)
Browse files Browse the repository at this point in the history
* remove domains prefix from the url

Signed-off-by: ianmuchyri <[email protected]>

* add changeset

Signed-off-by: ianmuchyri <[email protected]>

---------

Signed-off-by: ianmuchyri <[email protected]>
  • Loading branch information
ianmuchyri authored Oct 27, 2024
1 parent c425725 commit 43a05d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/few-dryers-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@absmach/magistrala-sdk": patch
---

remove domains prefix from domain users url
2 changes: 1 addition & 1 deletion src/domains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export default class Domains {

try {
const response = await fetch(
new URL(`/domains/${domainID}/users?${new URLSearchParams(stringParams).toString()}`, this.usersUrl).toString(),
new URL(`${domainID}/users?${new URLSearchParams(stringParams).toString()}`, this.usersUrl).toString(),
options
)
if (!response.ok) {
Expand Down

0 comments on commit 43a05d9

Please sign in to comment.