Change type of _is_read to bool
This commit is contained in:
parent
e3ee21a4cf
commit
9399dc3435
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user