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:
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user