Skip to content

Commit

Permalink
fix(core): unmount & remount bot on config changed
Browse files Browse the repository at this point in the history
  • Loading branch information
slvnperron committed Jun 27, 2019
1 parent 1650cb2 commit e5c9592
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bp/core/services/bot-service.ts
Expand Up @@ -170,7 +170,12 @@ export class BotService {
...updatedFields
})

if (actualBot.disabled && !updatedBot.disabled) {
if (!updatedBot.disabled) {
if (this._isBotMounted(botId)) {
// we need to remount the bot to update the config
await this.unmountBot(botId)
}

await this.mountBot(botId)
}

Expand Down

0 comments on commit e5c9592

Please sign in to comment.