mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Fix query params
This commit is contained in:
parent
4ed2c1d458
commit
39681004a9
|
|
@ -247,7 +247,7 @@ func (s *statsStatements) registeredUserByType(ctx context.Context, txn *sql.Tx)
|
|||
// nonGuests is used twice
|
||||
for i, v := range nonGuests {
|
||||
params[i] = v // i: 0 1 2 => ($1, $2, $3)
|
||||
params[i+2] = v // i: 3 4 5 => ($5, $6, $7)
|
||||
params[i+1+len(nonGuests)] = v // i: 4 5 6 => ($5, $6, $7)
|
||||
}
|
||||
params[3] = api.AccountTypeGuest // $4
|
||||
params[7] = gomatrixserverlib.AsTimestamp(registeredAfter) // $8
|
||||
|
|
|
|||
Loading…
Reference in a new issue