Fix category #2
This commit is contained in:
parent
a42aaeca32
commit
d9111a6d05
|
|
@ -235,7 +235,7 @@ func mapToItem(result map[string]interface{}) microsub.Item {
|
||||||
|
|
||||||
if cats, ok := value.([]string); ok {
|
if cats, ok := value.([]string); ok {
|
||||||
for _, v := range cats {
|
for _, v := range cats {
|
||||||
item.Category = append(item.Category, v.(string))
|
item.Category = append(item.Category, v)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
item.Category = append(item.Category, value.(string))
|
item.Category = append(item.Category, value.(string))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user