mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Fix queries
This commit is contained in:
parent
9f5c963dac
commit
4e789ab46a
|
|
@ -85,8 +85,8 @@ func (s *statsStatements) DailyMessages(ctx context.Context, txn *sql.Tx, prevID
|
|||
func (s *statsStatements) DailySentMessages(ctx context.Context, txn *sql.Tx, prevID int64) (result int64, err error) {
|
||||
stmt := sqlutil.TxStmt(txn, s.countTypesStmt)
|
||||
err = stmt.QueryRowContext(ctx,
|
||||
prevID,
|
||||
"m.room.message",
|
||||
prevID,
|
||||
fmt.Sprintf("%%:%s", s.serverName),
|
||||
).Scan(&result)
|
||||
return
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ GROUP BY client_type
|
|||
`
|
||||
|
||||
const countUserByAccountTypeSQL = `
|
||||
SELECT COUNT(*) FROM account_accounts WHERE account_type IN $1
|
||||
SELECT COUNT(*) FROM account_accounts WHERE account_type = $1
|
||||
`
|
||||
|
||||
const countRegisteredUserByTypeStmt = `
|
||||
|
|
|
|||
Loading…
Reference in a new issue