Remove sys users from user metric
This commit is contained in:
parent
a853f7cfd1
commit
fd6465d0f9
@ -40,7 +40,10 @@ func (s *Store) UserMetrics(ctx context.Context) (m *systemType.UserMetrics, err
|
||||
Suspended uint `db:"suspended"`
|
||||
}{}
|
||||
|
||||
genericExcl = goqu.C("kind").Eq("")
|
||||
|
||||
query = userSelectQuery(s.Dialect.GOQU()).
|
||||
Where(genericExcl).
|
||||
Select(timestampStatExpr("deleted", "suspended")...)
|
||||
)
|
||||
|
||||
@ -60,7 +63,7 @@ func (s *Store) UserMetrics(ctx context.Context) (m *systemType.UserMetrics, err
|
||||
ctx,
|
||||
userTable,
|
||||
[]goqu.Expression{
|
||||
goqu.C("kind").Eq(""),
|
||||
genericExcl,
|
||||
},
|
||||
[]string{
|
||||
"created_at",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user