-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix(api): modifica fetchChats para trazer mensagens de contatos não salvos #1384
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
Conversation
…alvos - Muda tabela base da consulta de Contact para Message - Altera INNER JOIN para LEFT JOIN entre Message e Contact - Usa COALESCE para campos que podem estar vazios - Adiciona flag isSaved para identificar contatos salvos/não salvos - Preserva toda funcionalidade de filtros existente Resolve issue EvolutionAPI#1376
Reviewer's Guide by SourceryThis pull request modifies the ER Diagram for fetchChats Query ChangeerDiagram
Message {
string key
string pushName
bigint messageTimestamp
string instanceId
}
Contact {
string id
string remoteJid
string pushName
string profilePicUrl
datetime updatedAt
string instanceId
}
Chat {
string remoteJid
datetime createdAt
string instanceId
}
Message ||--o{ Contact : remoteJid
Message ||--o{ Chat : remoteJid
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @leandrosroc - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a comment explaining why the limit clause was removed.
- The query is complex; consider adding comments to the SQL query to improve readability.
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
🛠️ Complemento à PR: Suporte a mensagens de contatos não salvos em
|
irei fazer o commit com a solução proposta |
e muito obrigado 😀😀 |
fix(api): modifica fetchChats para trazer mensagens de contatos não salvos
Resolve issue #1376
Summary by Sourcery
Modify the fetchChats query to support retrieving messages from unsaved contacts by changing the base table and join strategy
Bug Fixes:
Enhancements: