Update
This commit is contained in:
@@ -105,8 +105,10 @@ func (b *OrderRepository) GetAllHystoryOrders(ctx context.Context, req entity.Hi
|
||||
return nil, 0, err
|
||||
}
|
||||
|
||||
page := (req.Offset - 1) * req.Limit
|
||||
|
||||
if req.Offset > 0 {
|
||||
query = query.Offset(req.Offset)
|
||||
query = query.Offset(page)
|
||||
}
|
||||
|
||||
if req.Limit > 0 {
|
||||
|
||||
Reference in New Issue
Block a user