fix output bug
This commit is contained in:
parent
7eab8504f0
commit
fb7db7719f
2
merp.go
2
merp.go
|
@ -47,7 +47,7 @@ func getLatestMerps() gin.HandlerFunc {
|
|||
qs := orm.QueryTable("merp").Filter("thing", thing).OrderBy("-created").Limit(50)
|
||||
qs.All(&merps)
|
||||
|
||||
var output []map[string]interface{}
|
||||
output := make([]map[string]interface{}, 0)
|
||||
for _, merp := range merps {
|
||||
outelem := make(map[string]interface{})
|
||||
outelem["thing"] = merp.Thing
|
||||
|
|
Loading…
Reference in New Issue