mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-21 08:51:05 +01:00
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
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:
parent
36e7e6f884
commit
7681dfbf0b
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user