Update
This commit is contained in:
@@ -2,7 +2,6 @@ package order
|
||||
|
||||
import (
|
||||
"furtuna-be/internal/common/errors"
|
||||
"furtuna-be/internal/common/mycontext"
|
||||
"furtuna-be/internal/entity"
|
||||
"furtuna-be/internal/handlers/request"
|
||||
"furtuna-be/internal/handlers/response"
|
||||
@@ -177,7 +176,7 @@ func (h *Handler) GetAllHistoryOrders(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
ctx := mycontext.NewContext(c.Request.Context())
|
||||
ctx := request.GetMyContext(c)
|
||||
orders, total, err := h.service.GetAllHistoryOrders(ctx, req.ToEntity(ctx))
|
||||
if err != nil {
|
||||
response.ErrorWrapper(c, err)
|
||||
|
||||
Reference in New Issue
Block a user