1
0
Fork 0

Fever API: Return response with an empty list if there is no items

This commit is contained in:
Abhinand 2018-05-08 22:08:01 -07:00 committed by Frédéric Guillot
parent 0c2e5ff0dc
commit 4674d559a4

View file

@ -386,6 +386,7 @@ func (c *Controller) handleItems(w http.ResponseWriter, r *http.Request) {
return
}
result.Items = make([]item, 0)
for _, entry := range entries {
isRead := 0
if entry.Status == model.EntryStatusRead {