feat(be): user count implementation for boltdb
Some checks are pending
Dev / build-local (push) Waiting to run
Dev / migrate-boltdb (push) Blocked by required conditions
Dev / migrate-mysql (push) Blocked by required conditions
Dev / migrate-mariadb (push) Blocked by required conditions
Dev / migrate-postgres (push) Blocked by required conditions
Dev / integrate-boltdb (push) Blocked by required conditions
Dev / integrate-mysql (push) Blocked by required conditions
Dev / integrate-mariadb (push) Blocked by required conditions
Dev / integrate-postgres (push) Blocked by required conditions
Dev / deploy-server (push) Blocked by required conditions
Dev / deploy-runner (push) Blocked by required conditions

This commit is contained in:
Denis Gukov 2024-11-19 16:17:36 +05:00
parent b2f615bb1b
commit 36e7e6f884

View File

@ -177,6 +177,12 @@ func (d *BoltDb) GetUser(userID int) (user db.User, err error) {
}
func (d *BoltDb) GetUserCount() (count int, err error) {
var users []db.User
err = d.getObjects(0, db.UserProps, db.RetrieveQueryParams{}, nil, &users)
if err != nil {
return
}
count = len(users)
return
}