|
@@ -3230,7 +3230,7 @@ public class OrderController : BaseController
|
|
|
var pushTypeAny = await _orderPushTypeRepository.AnyAsync(x => x.OrderId == order.Id);
|
|
|
if (pushTypeAny)
|
|
|
await _orderPushTypeRepository.RemoveAsync(x => x.OrderId == order.Id);
|
|
|
- order.OrderPushTypes.ForEach(x => x.OrderId = order.Id);
|
|
|
+ dto.OrderPushTypes.ForEach(x => x.OrderId = order.Id);
|
|
|
var orderPushTypes = _mapper.Map<List<OrderPushType>>(dto.OrderPushTypes);
|
|
|
await _orderPushTypeRepository.AddRangeAsync(orderPushTypes);
|
|
|
var pushTypes = dto.OrderPushTypes.Select(x => x.PushType);
|