Fix category #2

This commit is contained in:
Peter Stuifzand 2018-04-07 21:07:00 +02:00
parent a42aaeca32
commit d9111a6d05

View File

@ -235,7 +235,7 @@ func mapToItem(result map[string]interface{}) microsub.Item {
if cats, ok := value.([]string); ok {
for _, v := range cats {
item.Category = append(item.Category, v.(string))
item.Category = append(item.Category, v)
}
} else {
item.Category = append(item.Category, value.(string))