fixed search error (#183)
This commit is contained in:
parent
70371bf65a
commit
8aaf9b4adf
@ -48,11 +48,6 @@ func apiTorrentsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if tq.LastID == nil {
|
||||
respondError(w, 400, "lastID has to be greater than or equal to zero")
|
||||
return
|
||||
}
|
||||
|
||||
if tq.Ascending == nil {
|
||||
tq.Ascending = new(bool)
|
||||
*tq.Ascending = true
|
||||
|
Loading…
Reference in New Issue
Block a user