diff options
| author | Pitu <[email protected]> | 2017-01-19 03:11:20 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-01-19 03:11:20 -0300 |
| commit | 0f058724f32d29ef8f03159105759ab3c6be3db3 (patch) | |
| tree | 6cf66914251fca7b230ef92633d0b2180edb65db | |
| parent | Ohboi (diff) | |
| download | host.fuwn.me-0f058724f32d29ef8f03159105759ab3c6be3db3.tar.xz host.fuwn.me-0f058724f32d29ef8f03159105759ab3c6be3db3.zip | |
Reverse sorted links list to show newers first
| -rw-r--r-- | controllers/uploadController.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/controllers/uploadController.js b/controllers/uploadController.js index 8f4b092..07fed9c 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -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) => { |