diff --git a/src/services/offer.js b/src/services/offer.js index 2709f23f..6af53bf5 100644 --- a/src/services/offer.js +++ b/src/services/offer.js @@ -474,7 +474,8 @@ class OfferService { ownerLogo: company.logo, contacts: company.contacts, }; - await Offer.updateMany({ owner: company._id }, offer); + const offers = await Offer.updateMany({ owner: company._id }, offer, { new: true }); + return offers; } }