Skip to content

Commit

Permalink
Merge pull request #136 from kata-ai/fix-invite-member
Browse files Browse the repository at this point in the history
comment console log
  • Loading branch information
oktavianidewi authored Oct 28, 2019
2 parents e60d8fc + 48490cc commit 1ee57c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
19 changes: 9 additions & 10 deletions components/users/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,24 +97,24 @@ export default class Team extends Component {
} else {
throw new Error("Cannot add user to team");
}
console.log('teamInfo ', teamInfo);
// console.log('teamInfo ', teamInfo);

const requestUserData =
await this.helper.toPromise(
this.api.userApi,
this.api.userApi.usersGetInfoKeyGet,
username
await this.helper.toPromise(
this.api.userApi,
this.api.userApi.usersGetInfoKeyGet,
username
);


// console.log('requestUserData ', requestUserData);
let userInfo: any;
if (requestUserData && requestUserData.response) {
userInfo = requestUserData.response.body;
} else {
throw new Error("Cannot add user to team");
}

console.log('userInfo ', userInfo);

// console.log('userInfo ', userInfo);
const requestTeamMember =
await this.helper.toPromise(
this.api.teamApi,
Expand All @@ -129,8 +129,7 @@ export default class Team extends Component {
throw new Error("Cannot add user to team");
}

console.log('teamMember ', teamMember);

// console.log('teamMember ', teamMember);
return {
teamInfo,
userInfo,
Expand Down
1 change: 1 addition & 0 deletions lib/components/users/team.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1ee57c4

Please sign in to comment.