Skip to content

Conversation

@daphnevilhar
Copy link
Contributor

@daphnevilhar daphnevilhar commented Jul 28, 2025

Esse PR melhora o método publish! pra evitar que a mensagem seja transformada em JSON mais de uma vez.

Agora, se a mensagem for um hash, ela é convertida com to_json normalmente.
Mas se já for uma string (ou seja, um JSON pronto), ele só envia direto.

Antes podia acontecer de passarmos um JSON como string e ele acabar virando um JSON dentro de outro JSON, o que quebrava a leitura da mensagem no outro lado (ex: SNS, SQS).

@daphnevilhar daphnevilhar marked this pull request as ready for review July 28, 2025 13:14
@daphnevilhar daphnevilhar self-assigned this Jul 28, 2025
@daphnevilhar daphnevilhar requested a review from rubendebest July 28, 2025 15:44
Copy link
Member

@brunozrk brunozrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nossa, boa!
vai evitar muitos problemas para quem for fazer a migração 😅 👏🏻

@daphnevilhar daphnevilhar merged commit a12fd5d into master Jul 29, 2025
2 checks passed
@daphnevilhar daphnevilhar deleted the feat/publish-hash-or-json-support branch July 29, 2025 13:40
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.

4 participants