fix(sla): corrige tipo de categoryId na insercao de regra
Some checks failed
CI/CD Web + Desktop / Detect changes (push) Successful in 7s
CI/CD Web + Desktop / Deploy (VPS Linux) (push) Successful in 4m0s
Quality Checks / Lint, Test and Build (push) Successful in 4m12s
CI/CD Web + Desktop / Deploy Convex functions (push) Failing after 1m20s

🤖 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-17 19:15:34 -03:00
parent 158fb32b8a
commit 5db31ba365

View file

@ -195,7 +195,7 @@ export const save = mutation({
await ctx.db.insert("companySlaSettings", {
tenantId,
companyId,
categoryId: rule.categoryId ?? undefined,
categoryId: rule.categoryId ? (rule.categoryId as Id<"ticketCategories">) : undefined,
priority: rule.priority,
responseTargetMinutes: rule.responseTargetMinutes,
responseMode: rule.responseMode,