aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-06-24 20:26:30 +0200
committerMax Magorsch <arzano@gentoo.org>2020-06-24 20:26:30 +0200
commit1cdb066200ca9cd2fcec7af9747a0da8807c946f (patch)
treefe8e678cb28f1da3a68fc06874f7966fb693258d /pkg
parentFix the references of a message (diff)
downloadarchives-1cdb066200ca9cd2fcec7af9747a0da8807c946f.tar.gz
archives-1cdb066200ca9cd2fcec7af9747a0da8807c946f.tar.bz2
archives-1cdb066200ca9cd2fcec7af9747a0da8807c946f.zip
Fix getAllMessagesCount to use message_id_field
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'pkg')
-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;
`)