Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temp instance deletion #404

Merged
merged 2 commits into from
Feb 8, 2024

Conversation

judsonjuniorr
Copy link
Contributor

When we create an instance and don't read the QR code, some documents are created in the database but not in the instance collection. As a result, after restarting the API, the instance disappears but the database still retains some leftover data.

CleanShot 2024-02-07 at 16 41 24
CleanShot 2024-02-07 at 16 42 08
CleanShot 2024-02-07 at 16 42 43

And after we restart the API:
CleanShot 2024-02-07 at 16 44 13


With this change, when starting the API, it will check all documents from the 'auth' collection and compare if the instance exists.
CleanShot 2024-02-07 at 16 45 27

Also, some commented sections have been cleaned.

@DavidsonGomes DavidsonGomes merged commit 8608b7c into EvolutionAPI:develop Feb 8, 2024
@judsonjuniorr judsonjuniorr deleted the instance-deletion branch February 12, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants