fix: resolve tech debt from v1.0 milestone audit

- Frontend admin email now reads from VITE_ADMIN_EMAIL env var instead of hardcoded literal
- Consolidate retention cleanup: remove runRetentionCleanup, add document_processing_events to existing cleanupOldData
- Replace personal email in defineString('EMAIL_WEEKLY_RECIPIENT') default with empty string

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
admin
2026-02-25 10:26:24 -05:00
parent 5d3ebbe27a
commit 8bad951d63
3 changed files with 11 additions and 31 deletions

View File

@@ -4,4 +4,5 @@ VITE_FIREBASE_AUTH_DOMAIN=cim-summarizer.firebaseapp.com
VITE_FIREBASE_PROJECT_ID=cim-summarizer
VITE_FIREBASE_STORAGE_BUCKET=cim-summarizer.firebasestorage.app
VITE_FIREBASE_MESSAGING_SENDER_ID=245796323861
VITE_FIREBASE_APP_ID=1:245796323861:web:39c1c86e0e4b405510041c
VITE_FIREBASE_APP_ID=1:245796323861:web:39c1c86e0e4b405510041c
VITE_ADMIN_EMAIL=jpressnell@bluepointcapital.com

View File

@@ -78,7 +78,7 @@ export interface SystemMetrics {
}
class AdminService {
private readonly ADMIN_EMAIL = 'jpressnell@bluepointcapital.com';
private readonly ADMIN_EMAIL = import.meta.env.VITE_ADMIN_EMAIL || '';
/**
* Check if current user is admin