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

Simplify events structure - V2.0.0 #812

Merged
merged 4 commits into from
Aug 23, 2024

Conversation

stenioanibal
Copy link
Contributor

@stenioanibal stenioanibal commented Aug 23, 2024

As a complement to the past refactor PR, this one makes even easier and readable the Events structure. To reach this simplicity, it was needed a break change, specially related to the instance parameters, moving the old pattern to an object one, like:

{
   // instance params
   websocket: {
      enabled: true,
      events: [
         ...
      ]
   },
   ...

In addition, some fixes were implemented, as listed below:

  1. Remove exception messages for not found states on event management;
  2. Parse prisma returns from intrinsic types to specific ones;
  3. Remove unused code;

@DavidsonGomes DavidsonGomes merged commit a08ca7a into EvolutionAPI:v2.0.0 Aug 23, 2024
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