Skip to content

Commit 002d4df

Browse files
authored
Merge pull request #542 from stytchauth/member-update-bug
Fix orangization member update path
2 parents 3ec20e9 + a3f62df commit 002d4df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/StytchCore/StytchB2BClient/StytchB2BClient+Routes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ extension StytchB2BClient {
222222
case .create:
223223
return Path(rawValue: "")
224224
case let .update(memberId):
225-
return Path(rawValue: "update/\(memberId)")
225+
return Path(rawValue: "\(memberId)")
226226
case let .delete(memberId):
227227
return Path(rawValue: "\(memberId)")
228228
case let .reactivate(memberId):

Tests/StytchCoreTests/B2BOrganizationsMembersTestCase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class B2BOrganizationsMembersTestCase: BaseTestCase {
4747
XCTAssertEqual(updateOrganizationMemberResponse.member.name, name)
4848
try XCTAssertRequest(
4949
networkInterceptor.requests[0],
50-
urlString: "https://api.stytch.com/sdk/v1/b2b/organizations/members/update/\(memberId)",
50+
urlString: "https://api.stytch.com/sdk/v1/b2b/organizations/members/\(memberId)",
5151
method: .put(["member_id": JSON(stringLiteral: memberId), "name": JSON(stringLiteral: name)])
5252
)
5353
}

0 commit comments

Comments
 (0)