From b03cd20b401e8e396d0c748196b482cb848b47f7 Mon Sep 17 00:00:00 2001 From: "matthias.lotz" Date: Sat, 8 Nov 2025 13:24:58 +0100 Subject: [PATCH] fix(backend): Correct GroupCleanupService import in admin routes GroupCleanupService exports an instance, not a class constructor --- backend/src/routes/admin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) => {