Skip to content

Commit

Permalink
fix: add a comment about logic to try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Dec 8, 2019
1 parent 9e18b76 commit 9c8bba4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/bitbucket/BitbucketService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ export class BitbucketService implements IVCSService {
}

const ownerUrl = `www.bitbucket.org/${owner}`;

//Bitbucket use two types of accounts - user and team. The request for users uuid fails if it is a team account.
let ownerId: string;
try {
ownerId = `${(await this.client.users.get({ username: owner })).data.uuid}`;
Expand Down

0 comments on commit 9c8bba4

Please sign in to comment.