Skip to content

Commit 0663c32

Browse files
committed
fixed sid when email is used
1 parent 396eff9 commit 0663c32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

restcomm/restcomm.http/src/main/java/org/restcomm/connect/http/AccountsEndpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ protected Response getAccount(final String accountSid, final MediaType responseT
201201
return status(NOT_FOUND).build();
202202
} else {
203203
Response.ResponseBuilder ok = Response.ok();
204-
Profile associatedProfile = profileService.retrieveEffectiveProfileByAccountSid(new Sid(accountSid));
204+
Profile associatedProfile = profileService.retrieveEffectiveProfileByAccountSid(account.getSid());
205205
if (associatedProfile != null) {
206206
LinkHeader profileLink = composeLink(new Sid(associatedProfile.getSid()), info);
207207
ok.header(ProfileEndpoint.LINK_HEADER, profileLink.toString());

0 commit comments

Comments
 (0)