first-deploy #72

Merged
kilder merged 12 commits from first-deploy into master 2026-01-13 17:54:12 +00:00
38 changed files with 6829 additions and 903 deletions
Showing only changes of commit 417394ddbe - Show all commits

View File

@@ -479,7 +479,12 @@ export const enforceRequest = mutation({
// 2) Rate limit enforcement (endpoint + IP) // 2) Rate limit enforcement (endpoint + IP)
// - endpoint rules usam o "pathKey" (ex.: api/auth/sign-in/email) // - endpoint rules usam o "pathKey" (ex.: api/auth/sign-in/email)
// - ip rules usam o IP e namespace por endpoint // - ip rules usam o IP e namespace por endpoint
const endpointCheck = await aplicarRateLimit(ctx, 'endpoint', pathKey || 'root', pathKey || 'root'); const endpointCheck = await aplicarRateLimit(
ctx,
'endpoint',
pathKey || 'root',
pathKey || 'root'
);
if (!endpointCheck.permitido) { if (!endpointCheck.permitido) {
return { return {
allowed: false, allowed: false,
@@ -3174,7 +3179,8 @@ export const listarAutoBlockConfigs = query({
await assertAdmin(ctx); await assertAdmin(ctx);
const queryInitializer = ctx.db.query('autoBlockConfig'); const queryInitializer = ctx.db.query('autoBlockConfig');
const query = args.ativo !== undefined const query =
args.ativo !== undefined
? queryInitializer.withIndex('by_ativo', (q) => { ? queryInitializer.withIndex('by_ativo', (q) => {
const ativoValue: boolean = args.ativo!; const ativoValue: boolean = args.ativo!;
return q.eq('ativo', ativoValue); return q.eq('ativo', ativoValue);