Fever API: Return response with an empty list if there is no items
This commit is contained in:
parent
0c2e5ff0dc
commit
4674d559a4
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue