update GetCount (not archived threads)

This commit is contained in:
Yanislav Igonin 2021-11-18 11:53:39 +02:00
parent f577dbcc7f
commit bbed93965d

View File

@ -66,6 +66,7 @@ func (r *PostsRepository) GetCount() (int, error) {
WHERE
is_parent = true
AND is_deleted != true
AND is_archived != true
`
row := Db.Pool.QueryRow(context.TODO(), sql)