Fixed findShipment bug in getLabels
This is because getLabels
was using the helper method findShipmentById
that returns a mongoose Document
with the addresses populated and sanitized since !267 (merged). getLabels
was expecting a Query
to call populate
.
Fixed by changing helper.findShipmentById
to Shipment.findById
(returns a Query
) as we don't need the populated addresses anyway for the label generation.