fix: limpiar caché de AllowedGroups al activar gating por grupos

Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
pull/1/head
borja 1 month ago
parent 6a58f9d136
commit bf46976b1c

@ -92,7 +92,11 @@ export class RemindersService {
// Determinar si aplicar gating por grupos
const enforce = String(process.env.GROUP_GATING_MODE || 'off').toLowerCase() === 'enforce';
if (enforce) {
try { (AllowedGroups as any).dbInstance = this.dbInstance; } catch {}
try {
(AllowedGroups as any).dbInstance = this.dbInstance;
// Evitar falsos positivos por caché obsoleta entre operaciones previas del test
AllowedGroups.clearCache?.();
} catch {}
}
for (const pref of rows) {

Loading…
Cancel
Save