fixed search error (#183)

This commit is contained in:
Bora M. Alper 2019-01-01 18:23:57 +03:00
parent 70371bf65a
commit 8aaf9b4adf
No known key found for this signature in database
GPG Key ID: 8F1A9504E1BD114D

View File

@ -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