From daf2d319521addb04ad5c18c4f492b3879ea657e Mon Sep 17 00:00:00 2001 From: GotPPay Date: Fri, 4 May 2018 16:38:56 +0200 Subject: [PATCH] fixed sql query error --- data/datamysql/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/datamysql/user.go b/data/datamysql/user.go index 2ae8be0..d3c4a00 100644 --- a/data/datamysql/user.go +++ b/data/datamysql/user.go @@ -784,7 +784,7 @@ func (c *userRepo) getAddressSecondaryData(address entity.Address) (entity.Addre // GetAll returns a list of all active cards func (c *userRepo) GetAll() (list []entity.User, err error) { - return c.parseSet(c.conn.Query(c.getQuery() + " WHERE a.active = 1 ")) + return c.parseSet(c.conn.Query(c.getQuery() + " AND a.active = 1 ")) } // GetByID returns a single card data by its ID