botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
78 stars 87 forks source link

[BUG] Replacing a bot keeps older bot files #1569

Closed davidvitora closed 2 years ago

davidvitora commented 2 years ago

Describe the bug If you upload a bot '.tgz' file to replace a current bot present in the server (replace), the older bot files that were deleted are not removed.

To Reproduce Steps to reproduce the behavior:

  1. Create a bot and a bot hook for that new bot
  2. Export the bot
  3. Modify the .tgz file by removing the hook that was also exported.
  4. Import the modified bot file with the same id and replace the original. image
  5. Notice how the hook continues in the bot folder.

Expected behavior Botpress to just keep files present in the .tgz file

Environment (please complete the following information):