fix(reports): gate report queries behind staff check; prevent non-staff crashes; trigger Convex deploy by touching convex/reports.ts

This commit is contained in:
codex-bot 2025-10-21 14:29:31 -03:00
parent 2cdc856009
commit 4b4c0d8e69
5 changed files with 20 additions and 15 deletions

View file

@ -330,6 +330,7 @@ export const backlogOverview = query({
},
});
// Touch to ensure CI convex_deploy runs and that agentProductivity is deployed
export const agentProductivity = query({
args: { tenantId: v.string(), viewerId: v.id("users"), range: v.optional(v.string()), companyId: v.optional(v.id("companies")) },
handler: async (ctx, { tenantId, viewerId, range, companyId }) => {