From 7681dfbf0bf0b304126215e22d869dc214aa7538 Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Tue, 19 Nov 2024 23:23:16 +0500 Subject: [PATCH] fix(be): user count sql error for pg --- db/sql/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/sql/user.go b/db/sql/user.go index 182859f2..4f2f51aa 100644 --- a/db/sql/user.go +++ b/db/sql/user.go @@ -194,7 +194,7 @@ func (d *SqlDb) GetUser(userID int) (db.User, error) { func (d *SqlDb) GetUserCount() (count int, err error) { - cnt, err := d.sql.SelectInt("select count(*) from `user`") + cnt, err := d.sql.SelectInt(d.PrepareQuery("select count(*) from `user`")) count = int(cnt)