Update Order Response Ingredient
This commit is contained in:
@@ -212,7 +212,6 @@ func ListOrdersQueryToModel(query *contract.ListOrdersQuery) *models.ListOrdersR
|
||||
}
|
||||
}
|
||||
|
||||
// Parse enum fields
|
||||
if query.OrderType != "" {
|
||||
orderType := constants.OrderType(query.OrderType)
|
||||
req.OrderType = &orderType
|
||||
@@ -252,7 +251,7 @@ func ListOrdersQueryToModel(query *contract.ListOrdersQuery) *models.ListOrdersR
|
||||
}
|
||||
}
|
||||
|
||||
if query.DateFrom == query.DateTo {
|
||||
if query.DateFrom != "" && query.DateFrom == query.DateTo {
|
||||
newDate := req.DateTo.AddDate(0, 0, 1)
|
||||
req.DateTo = &newDate
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user