Skip to content

Commit

Permalink
fix(admin): fix bot creation
Browse files Browse the repository at this point in the history
  • Loading branch information
emirotin committed Aug 31, 2018
1 parent a5bf8d5 commit 888bd21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/admin/front/src/Pages/Teams/Bots.js
Expand Up @@ -53,7 +53,7 @@ class Bots extends Component {
}
}

async createBot() {
createBot = async () => {
if (window.confirm('Are you sure you want create the new bot?')) {
await api.getSecured().post(`/api/teams/${this.props.teamId}/bots`)
await this.props.fetchTeamData(this.props.teamId)
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/services/auth/teams-service.ts
Expand Up @@ -294,6 +294,8 @@ export default class TeamService {
.insert(bot)
.then()

// TODO: we also want to create the bot skeleton files now

return bot
}

Expand Down

0 comments on commit 888bd21

Please sign in to comment.