rights system

This commit is contained in:
Matthias Hochmeister
2026-03-23 10:07:53 +01:00
parent f976f36cbc
commit 2bb22850f4
35 changed files with 1565 additions and 282 deletions

View File

@@ -4,6 +4,7 @@ import logger from './utils/logger';
import { testConnection, closePool, runMigrations } from './config/database';
import { startAuditCleanupJob, stopAuditCleanupJob } from './jobs/audit-cleanup.job';
import { startNotificationJob, stopNotificationJob } from './jobs/notification-generation.job';
import { permissionService } from './services/permission.service';
const startServer = async (): Promise<void> => {
try {
@@ -16,6 +17,9 @@ const startServer = async (): Promise<void> => {
} else {
// Run pending migrations automatically on startup
await runMigrations();
// Load permission cache after migrations
await permissionService.loadCache();
}
// Start the GDPR IP anonymisation job