Fix naming of _is_read attribute

This commit is contained in:
Peter Stuifzand 2018-04-07 02:19:13 +02:00
parent d374cd15d6
commit e3ee21a4cf
2 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ func mapToItem(result map[string]interface{}) microsub.Item {
if id, e := result["_id"]; e {
item.Id = id.(string)
}
if read, e := result["_read"]; e {
if read, e := result["_is_read"]; e {
item.Read = read.(string)
}

View File

@ -68,7 +68,7 @@ type Item struct {
Latitude string `json:"latitude,omitempty"`
Longitude string `json:"longitude,omitempty"`
Id string `json:"_id"`
Read string `json:"_read"`
Read string `json:"_is_read"`
}
// Pagination contains information about paging