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
1 changed files with 1 additions and 0 deletions

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 {