🐛 Bug fix
This commit is contained in:
parent
48b2a8d470
commit
cb61132011
@ -1,9 +1,10 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"git.solsynth.dev/hypernet/reader/pkg/internal/services"
|
||||
"time"
|
||||
|
||||
"git.solsynth.dev/hypernet/reader/pkg/internal/services"
|
||||
|
||||
"git.solsynth.dev/hypernet/nexus/pkg/nex/sec"
|
||||
"git.solsynth.dev/hypernet/reader/pkg/internal/database"
|
||||
"git.solsynth.dev/hypernet/reader/pkg/internal/models"
|
||||
@ -62,6 +63,8 @@ func listNewsArticles(c *fiber.Ctx) error {
|
||||
sources = append(sources, srv.ID)
|
||||
}
|
||||
|
||||
tx = tx.Where("source IN ?", sources)
|
||||
|
||||
var count int64
|
||||
countTx := tx
|
||||
if err := countTx.Model(&models.NewsArticle{}).Count(&count).Error; err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user