diff options
author | 2020-06-24 20:26:30 +0200 | |
---|---|---|
committer | 2020-06-24 20:26:30 +0200 | |
commit | 1cdb066200ca9cd2fcec7af9747a0da8807c946f (patch) | |
tree | fe8e678cb28f1da3a68fc06874f7966fb693258d | |
parent | Fix the references of a message (diff) | |
download | archives-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>
-rw-r--r-- | pkg/app/home/utils.go | 2 |
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; `) |