fix output bug

This commit is contained in:
Jeffrey Paul 2019-11-08 04:41:18 -08:00
parent 7eab8504f0
commit fb7db7719f
1 changed files with 1 additions and 1 deletions

View File

@ -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