From 7df496142de187fecbc04a22e0bf851d88650ba6 Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 11 Dec 2018 11:46:48 +0800 Subject: [PATCH] fix error --- model/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/commands.go b/model/commands.go index 3de3321..ab090f5 100644 --- a/model/commands.go +++ b/model/commands.go @@ -75,7 +75,7 @@ func GetCommandCount(where ...interface{}) (c int, err error) { // GetCommands - func GetCommands(where map[string]string, offset, limit int, order map[string]string) (cmds []*CommandsWithGroup, err error) { - query := `select c.*, (case when g.name is null then '' else g.name end) as group_name from "public"."commands" + query := `select c.*, (case when g.name is null then '' else g.name end) as group_name from "public"."commands" c left join "public"."line_group" g on g.id = c.group ` values := make([]interface{}, (len(where) + len(order)))