Change type of _is_read to bool

This commit is contained in:
Peter Stuifzand 2018-04-07 02:22:05 +02:00
parent e3ee21a4cf
commit 9399dc3435
2 changed files with 2 additions and 2 deletions

View File

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

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:"_is_read"`
Read bool `json:"_is_read"`
}
// Pagination contains information about paging