Allow sorting by original names

This commit is contained in:
Bobby Wibowo 2020-07-25 16:39:04 +07:00
parent 63330bdc3f
commit 08db3e55a8
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -848,7 +848,8 @@ self.list = async (req, res) => {
// Columns mapping
maps: {
date: 'timestamp',
expiry: 'expirydate'
expiry: 'expirydate',
originalname: 'original'
},
// Columns with which to use SQLite's NULLS LAST option
nullsLast: [
@ -1080,6 +1081,7 @@ self.list = async (req, res) => {
'expirydate',
'id',
'name',
'original',
'size',
'timestamp'
]