Skip to content

Commit

Permalink
Update event.controller.js
Browse files Browse the repository at this point in the history
  • Loading branch information
haseebzaki-07 authored Oct 21, 2024
1 parent 13f2427 commit 93046ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/controller/event.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const bookEvent = async (req, res) => {

res.status(200).json({ message: "Event booked successfully!" });
} catch (error) {
console.error(error);
logger.error("Error booking event:", error);
res.status(500).json({ message: "Server error" });
}
};
Expand All @@ -111,7 +111,7 @@ const getBookedEvents = async (req, res) => {

res.status(200).json({ bookedEvents: customer.bookedEvents });
} catch (error) {
console.error(error);
logger.error("Error fetching event:", error);
res.status(500).json({ message: "Server error" });
}
};
Expand Down

0 comments on commit 93046ea

Please sign in to comment.