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

Corrigir erro 'unknown column contact.name' na pesquisa de ticket #97

Closed
wants to merge 1 commit into from
Closed

Conversation

gkp1
Copy link

@gkp1 gkp1 commented Mar 31, 2023

Corrigir erro 'unknown column contact.name' na pesquisa de ticket/mensagem/contato

Sequelize tem um bug ativo, estão tentando corrigir, que quando utilizamos limit, include, offset, juntos, e no include há tabelas relacionadas, dá erro de unknown column, por isso o fix temporário é desativar o subQuery, referencias: sequelize/sequelize#9166 https://stackoverflow.com/questions/23312868/unknown-column-error-in-sequelize-when-using-limit-and-include-options https://stackoverflow.com/questions/59453957/unknown-column-while-executing-where-conditions-sequelize-subquery-field

@rtenorioh se voce conseguir corrigir esse problema sem precisar desativar a subquery de algum modo, talvez seja uma correção melhor. Mas essa é a única pro momento. Não percebi nenhum erro de retornar tickets errados nem nada do tipo então parece q tá safe nesse caso.

…sagem/contato

Sequelize tem um bug ativo, estão tentando corrigir, que quando utilizamos limit, include, offset, juntos, dá erro de unknown column, por isso o fix temporário é desativar o subQuery, referencias: 
sequelize/sequelize#9166
https://stackoverflow.com/questions/23312868/unknown-column-error-in-sequelize-when-using-limit-and-include-options
https://stackoverflow.com/questions/59453957/unknown-column-while-executing-where-conditions-sequelize-subquery-field

@rtenorioh se voce conseguir corrigir esse problema removendo o offset ou limit de algum modo, talvez seja uma correção melhor.
@gkp1 gkp1 changed the title Corrigir erro 'unknown column contact.name' na pesquisa de ticket/men… Corrigir erro 'unknown column contact.name' na pesquisa de ticket Mar 31, 2023
@gkp1 gkp1 mentioned this pull request Mar 31, 2023
@rtenorioh
Copy link
Owner

Boa noite, na v1.4.4 ja lancei a correção tirando um include que estava gerando esse erro

@alexisgec
Copy link

Como faço para atualizar o sistema? Eu tenho a versão 1.4.3

@gkp1
Copy link
Author

gkp1 commented Apr 3, 2023

Boa noite, na v1.4.4 ja lancei a correção tirando um include que estava gerando esse erro

@rtenorioh já vi, só uma duvida, remover do include contactTags, nao impediria o filtro de tags de funcionar? pois retornará contacts sem a informaçao de tags?

@gkp1 gkp1 closed this by deleting the head repository Apr 4, 2023
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.

3 participants