Fix naming of _is_read attribute
This commit is contained in:
parent
d374cd15d6
commit
e3ee21a4cf
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user