Skip to content

Commit

Permalink
fix(reservation.controller): renema res.objact to reservation.object …
Browse files Browse the repository at this point in the history
…in Offer.findById (#67)
  • Loading branch information
karol-wolski authored May 14, 2022
1 parent 5bbd84a commit 55b1897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reservation/reservation.controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export async function getAllUserReservations(req, res) {
image: objImage,
title: objTitle,
localisation: { address: objAddress },
} = await Offer.findById(res.object);
} = await Offer.findById(reservation.object);

return {
title: objTitle,
Expand Down

0 comments on commit 55b1897

Please sign in to comment.