update: approve or disaprove suggrestions by sweeping

This commit is contained in:
Nathan FONTEYNE 2026-07-09 15:25:46 +02:00
parent 061df3b1c6
commit e368a8681b
5 changed files with 566 additions and 54 deletions

View file

@ -10,7 +10,7 @@ const router = express.Router();
router.get(
'/',
asyncHandler(async (req, res) => {
res.json(await suggestionsRepo.findAll());
res.json(await suggestionsRepo.findAll(req.user.id));
})
);