Add option to sort Recently Added by file's mtime instead of time of import.

This commit is contained in:
Deluan
2021-03-12 17:49:47 -05:00
committed by Deluan Quintão
parent 1ec105a245
commit 720e2357b7
6 changed files with 53 additions and 30 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
type Options model.QueryOptions
func AlbumsByNewest() Options {
return Options{Sort: "createdAt", Order: "desc"}
return Options{Sort: "recently_added", Order: "desc"}
}
func AlbumsByRecent() Options {