From ab2bcdc755d0c7707d63399f2b8193817469213d Mon Sep 17 00:00:00 2001 From: esdrasrenan Date: Mon, 15 Dec 2025 20:31:34 -0300 Subject: [PATCH] fix(checklist): inclui description, type, options e answer na query getById MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Os campos estavam sendo salvos corretamente no banco, mas a query getById nao os incluia no mapeamento de resposta, fazendo com que as opcoes de resposta e descricao nao aparecessem no frontend. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- convex/tickets.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/convex/tickets.ts b/convex/tickets.ts index 3575edb..22d7619 100644 --- a/convex/tickets.ts +++ b/convex/tickets.ts @@ -2081,6 +2081,10 @@ export const getById = query({ ? t.checklist.map((item) => ({ id: item.id, text: item.text, + description: item.description ?? undefined, + type: item.type ?? "checkbox", + options: item.options ?? undefined, + answer: item.answer ?? undefined, done: item.done, required: typeof item.required === "boolean" ? item.required : true, templateId: item.templateId ? String(item.templateId) : undefined,