diff --git a/.changeset/few-dryers-itch.md b/.changeset/few-dryers-itch.md new file mode 100644 index 0000000..bcf494a --- /dev/null +++ b/.changeset/few-dryers-itch.md @@ -0,0 +1,5 @@ +--- +"@absmach/magistrala-sdk": patch +--- + +remove domains prefix from domain users url diff --git a/src/domains.ts b/src/domains.ts index 7f58b04..4baf625 100644 --- a/src/domains.ts +++ b/src/domains.ts @@ -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) {