🐛 Bug fixes on query statement

This commit is contained in:
2024-11-02 23:47:44 +08:00
parent 553a87ab78
commit f9a01bff70
8 changed files with 12 additions and 10 deletions

View File

@@ -74,7 +74,7 @@ func listRecommendationFriends(c *fiber.Ctx) error {
return uint(item.GetId())
})
tx = tx.Where("author_id IN ?", friendList)
tx = tx.Where("publisher_id IN ?", friendList)
countTx := tx
count, err := services.CountPost(countTx)