src/services/BookingService.js
Function getUserBookingReqService
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static async getUserBookingReqService(req) {
const { bookingId: id } = req.params;
const managerObj = {
where: { managerId: req.user.id }
};
Function bookAccommodationService
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static async bookAccommodationService(req, res) {
try {
const accommodationObj = {
raw: true
};