fix(backend): Correct GroupCleanupService import in admin routes
GroupCleanupService exports an instance, not a class constructor
This commit is contained in:
parent
ace4090bc6
commit
b03cd20b40
|
|
@ -3,7 +3,8 @@ const router = express.Router();
|
||||||
const DeletionLogRepository = require('../repositories/DeletionLogRepository');
|
const DeletionLogRepository = require('../repositories/DeletionLogRepository');
|
||||||
const GroupCleanupService = require('../services/GroupCleanupService');
|
const GroupCleanupService = require('../services/GroupCleanupService');
|
||||||
|
|
||||||
const cleanupService = new GroupCleanupService();
|
// GroupCleanupService ist bereits eine Instanz, keine Klasse
|
||||||
|
const cleanupService = GroupCleanupService;
|
||||||
|
|
||||||
// Hole Deletion Log (mit Limit)
|
// Hole Deletion Log (mit Limit)
|
||||||
router.get('/deletion-log', async (req, res) => {
|
router.get('/deletion-log', async (req, res) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user