Skip to content

Commit

Permalink
fix: returning object
Browse files Browse the repository at this point in the history
  • Loading branch information
adelkahomolova committed Oct 3, 2019
1 parent f937f43 commit bf255d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/bitbucket/BitbucketService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class BitbucketService {
console.log(response, 'response 61');
const values =
response.data.values &&
response.data.values.map((val) => ({
response.data.values.map((val: any) => ({
user: {
id: val.author && val.author.uuid, //
login: val.author && val.author.nickname, //
Expand Down Expand Up @@ -106,7 +106,7 @@ export class BitbucketService {

// const pagination = this.getPagination(response.length);

return { items, pagination };
return { items, ...pagination };
}

async getPullRequest(owner: string, repo: string, prNumber: number) {
Expand Down

0 comments on commit bf255d3

Please sign in to comment.