debug(checklist): adiciona logs no backend para investigar

Logs adicionados:
- Na criacao do template para ver se description esta sendo salva
- Na aplicacao do template para ver se description existe

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
rever-tecnologia 2025-12-16 16:28:05 -03:00
parent db73e87cdc
commit c0713875b1
3 changed files with 34 additions and 1 deletions

View file

@ -2807,6 +2807,13 @@ export const applyChecklistTemplate = mutation({
const now = Date.now();
const current = normalizeTicketChecklist(ticketDoc.checklist);
// DEBUG: Verificar se o template tem description
console.log("[DEBUG applyChecklistTemplate] Template:", {
id: String(template._id),
name: template.name,
description: template.description,
hasDescription: Boolean(template.description),
});
const result = applyChecklistTemplateToItems(current, template, { now, actorId });
if (result.added === 0) {
return { ok: true, added: 0 };