diff --git a/convex/companySlas.ts b/convex/companySlas.ts index 6253e0f..4f5ff96 100644 --- a/convex/companySlas.ts +++ b/convex/companySlas.ts @@ -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,