| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Reviewer's GuideCorrects the conditional logic in the Chatwoot import helper so that when a conversationId is provided, the query includes an AND conversation_id clause, and when it isn’t, only the source_id filter is applied. Sequence diagram for Chatwoot import without conversationId (Corrected)sequenceDiagram
participant CI as ChatwootImport
participant DB as PostgreSQL Database
CI->>DB: Execute query: SELECT source_id FROM messages WHERE source_id = ANY($1)
DB-->>CI: Return filtered messages
File-Level Changes
Possibly linked issues
Tips and commands Interacting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Problema
O #1481 trouxe um erro de query na inversão da condicional.
if (conversationId) { query = 'SELECT source_id FROM messages WHERE source_id = ANY($1)'; } if (!conversationId) { query = 'SELECT source_id FROM messages WHERE source_id = ANY($1) AND conversation_id = $2'; }Deve ser:
if (conversationId) { query = 'SELECT source_id FROM messages WHERE source_id = ANY($1) AND conversation_id = $2'; } if (!conversationId) { query = 'SELECT source_id FROM messages WHERE source_id = ANY($1)'; }Summary by Sourcery
Bug Fixes: