fix(be): user count sql error for pg
Some checks failed
Dev / build-local (push) Has been cancelled
Dev / migrate-boltdb (push) Has been cancelled
Dev / migrate-mysql (push) Has been cancelled
Dev / migrate-mariadb (push) Has been cancelled
Dev / migrate-postgres (push) Has been cancelled
Dev / integrate-boltdb (push) Has been cancelled
Dev / integrate-mysql (push) Has been cancelled
Dev / integrate-mariadb (push) Has been cancelled
Dev / integrate-postgres (push) Has been cancelled
Dev / deploy-server (push) Has been cancelled
Dev / deploy-runner (push) Has been cancelled

This commit is contained in:
Denis Gukov 2024-11-19 23:23:16 +05:00
parent 36e7e6f884
commit 7681dfbf0b

View File

@ -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)