diff --git a/app/console/command.go b/app/console/command.go index 8149115..39a32f3 100644 --- a/app/console/command.go +++ b/app/console/command.go @@ -32,7 +32,7 @@ func ClearUnpayOrder() { session.Begin() _, err := session.In("id", ids).Update(&ordersmodel.Orders{State: 9}) if err == nil { - _, err = session.Exec("update Products set stock=stock+1 where id in (" + strings.Join(prodIds, ",") + ")") + _, err = session.Exec("update products set stock=stock+1 where id in (" + strings.Join(prodIds, ",") + ")") if err == nil { session.Commit() } else {