fix: stats

This commit is contained in:
Rogee
2025-05-06 18:43:07 +08:00
parent 3387fb6cff
commit 463df5d3a9
4 changed files with 19 additions and 4 deletions

View File

@@ -292,7 +292,7 @@ func (m *postsModel) Bought(ctx context.Context, userId int64, pagination *reque
tbl.INNER_JOIN(table.Posts, table.Posts.ID.EQ(tbl.PostID)),
).
WHERE(
tbl.UserID.EQ(Int64(1)),
tbl.UserID.EQ(Int64(userId)),
).
ORDER_BY(tbl.ID.DESC()).
LIMIT(pagination.Limit).