mirror of
https://github.com/documize/community.git
synced 2025-07-30 18:49:43 +02:00
latest build assets
This commit is contained in:
parent
476403bf46
commit
4046accc23
5 changed files with 27 additions and 25 deletions
|
@ -283,7 +283,7 @@ func (s Scope) ForgotUserPassword(ctx domain.RequestContext, email, token string
|
|||
}
|
||||
|
||||
// CountActiveUsers returns the number of active users in the system.
|
||||
func (s Scope) CountActiveUsers(ctx domain.RequestContext) (c int) {
|
||||
func (s Scope) CountActiveUsers() (c int) {
|
||||
row := s.Runtime.Db.QueryRow("SELECT count(*) FROM user u WHERE u.refid IN (SELECT userid FROM account WHERE active=1)")
|
||||
|
||||
err := row.Scan(&c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue