Add history on server side

Add ability to disable, clear and list user videos history
This commit is contained in:
Chocobozzz 2018-12-17 15:52:38 +01:00
parent 583cd0d212
commit 8b9a525a18
No known key found for this signature in database
GPG key ID: 583A612D890159BE
19 changed files with 385 additions and 29 deletions

View file

@ -29,7 +29,7 @@ function getVideoSort (value: string, lastSort: string[] = [ 'id', 'ASC' ]) {
]
}
return [ [ field, direction ], lastSort ]
return [ field.split('.').concat([ direction ]), lastSort ]
}
function getSortOnModel (model: any, value: string, lastSort: string[] = [ 'id', 'ASC' ]) {