diff --git a/backend/src/routes/admin.js b/backend/src/routes/admin.js index f4329c3..38ea942 100644 --- a/backend/src/routes/admin.js +++ b/backend/src/routes/admin.js @@ -3,7 +3,8 @@ const router = express.Router(); const DeletionLogRepository = require('../repositories/DeletionLogRepository'); const GroupCleanupService = require('../services/GroupCleanupService'); -const cleanupService = new GroupCleanupService(); +// GroupCleanupService ist bereits eine Instanz, keine Klasse +const cleanupService = GroupCleanupService; // Hole Deletion Log (mit Limit) router.get('/deletion-log', async (req, res) => {