chore: Update monitor service and instance controller

Refactored the instance controller and monitor service to improve the connection handling and management of WhatsApp instances.

- Modified the instance controller to close the WebSocket connection and restart the instance instead of reloading it.
- Updated the monitor service to remove the instance from the `waInstances` object and emit an event to clean up and remove the instance data.
- Fixed an issue where the instance was not being removed from the `waInstances` object.

Files affected:
- CHANGELOG.md
- src/api/controllers/instance.controller.ts
- src/api/services/monitor.service.ts
This commit is contained in:
Davidson Gomes
2024-07-30 11:15:21 -03:00
parent 95bc5e6b21
commit 66814b403e
3 changed files with 12 additions and 13 deletions

View File

@@ -1,8 +1,8 @@
# 2.0.4-beta (beta)
# 2.0.4-rc (release candidate)
### Features
* New manager v2.0.0
* New manager v2.0
### Fixed