diff --git a/model/commands.go b/model/commands.go index 6ea3dc9..3de3321 100644 --- a/model/commands.go +++ b/model/commands.go @@ -69,7 +69,7 @@ func GetCommandCount(where ...interface{}) (c int, err error) { } } } - err = x.Get(&c, query, values) + err = x.Get(&c, query, values...) return } @@ -119,6 +119,8 @@ func GetCommands(where map[string]string, offset, limit int, order map[string]st } } + err = x.Select(cmds, query, values...) + return }