Reverse sorted links list to show newers first

This commit is contained in:
Pitu 2017-01-19 03:11:20 -03:00
parent 5d09892ec1
commit 0f058724f3

View File

@ -92,6 +92,7 @@ uploadsController.list = function(req, res){
else
this.where('albumid', req.params.id)
})
.sort('id', 'DESC')
.then((files) => {
db.table('albums').then((albums) => {