Cauê Faleiros 39f0de34f2
All checks were successful
Build and Deploy / build-and-push (push) Successful in 1m23s
Key Tiny order cache by status to stop forwarding stale situacao
Tiny fires one webhook per status change, often under a minute apart
(e.g. "Preparando envio" -> "Pronto para envio"). The 120s order details
cache was keyed only by order ID, so the second webhook reused the first
fetch and forwarded the previous situacao to n8n, which then skipped the
message (notably the pickup "Pronto para envio" notification).

Key the cache and in-flight dedupe by order ID + webhook codigoSituacao,
so a status change always refetches while same-status duplicates still
share one Tiny call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 14:47:50 -03:00
2026-04-09 09:45:02 -03:00
2026-04-09 09:45:02 -03:00
2026-07-28 14:09:48 -03:00
Description
No description provided
463 KiB
Languages
TypeScript 99.6%
Dockerfile 0.4%