This commit is contained in:
2024-01-06 18:09:23 -05:00
parent 7fad640cca
commit 77519e6d52
12 changed files with 576 additions and 530 deletions

View File

@ -7,8 +7,10 @@ router.get('/', async function(req, res, next){
try{
res.json({results: await Torrent.findAll({
where:{added_by: req.query.username || req.user.username},
limit: req.query.limit,
offset: req.query.offset
// limit: req.query.limit,
// offset: req.query.offset,
// order: [[req.query.orderKey || "created_at", (req.query.asc && "ASC")]],
// from: {$between: [startDate, endDate]}
})});
}catch(error){
next(error);