Skip to content

Commit

Permalink
updateAllOffersByCompanyId now returns all offers updated
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-vb committed Feb 28, 2023
1 parent 094537c commit e6c7c52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/offer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit e6c7c52

Please sign in to comment.