aboutsummaryrefslogtreecommitdiff
path: root/pkg/app
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/app')
-rw-r--r--pkg/app/home/utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/app/home/utils.go b/pkg/app/home/utils.go
index 6677302..ec7d77f 100644
--- a/pkg/app/home/utils.go
+++ b/pkg/app/home/utils.go
@@ -27,7 +27,7 @@ func getAllMessagesCount() int {
var messsageCount int
database.DBCon.Model((*models.Message)(nil)).QueryOne(pg.Scan(&messsageCount), `
SELECT
- count(DISTINCT messages.message_id)
+ count(DISTINCT messages.message_id_field)
FROM
messages;
`)