fix(stats): fix table name in get_message_count
This commit is contained in:
parent
6c7abeb3de
commit
d04f3cf1ad
@ -39,7 +39,7 @@ func run_redis_query() []rstatval {
|
|||||||
|
|
||||||
func get_message_count() int {
|
func get_message_count() int {
|
||||||
var count int
|
var count int
|
||||||
row := messages_db.QueryRow(context.Background(), "select count(*) as count from systems")
|
row := messages_db.QueryRow(context.Background(), "select count(*) as count from messages")
|
||||||
if err := row.Scan(&count); err != nil {
|
if err := row.Scan(&count); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user