diff --git a/model/commands.go b/model/commands.go index ab090f5..88dd0ee 100644 --- a/model/commands.go +++ b/model/commands.go @@ -119,7 +119,7 @@ func GetCommands(where map[string]string, offset, limit int, order map[string]st } } - err = x.Select(cmds, query, values...) + err = x.Select(&cmds, query, values...) return }