Fix code to build sortConfig

This commit is contained in:
Jan Philipp Timme 2019-01-01 16:45:42 +01:00
parent 8210727655
commit ad252c7480

View File

@ -50,9 +50,9 @@ func showQueue() {
os.Exit(1) os.Exit(1)
} }
sortConfig := mailq.NewSortConfig() sortConfig := mailq.NewSortConfig()
sortConfig.By("Status", "ASC") sortConfig, _ = sortConfig.By("Status", "ASC")
sortConfig.By("Sender", "ASC") sortConfig, _ = sortConfig.By("Sender", "ASC")
sortConfig.By("Recipients", "DESC") sortConfig, _ = sortConfig.By("Recipients", "DESC")
queue.Sort(sortConfig) queue.Sort(sortConfig)
if settings["usePager"] == "true" { if settings["usePager"] == "true" {
pagerReader, pagerWriter := io.Pipe() pagerReader, pagerWriter := io.Pipe()