src/services/NotificationService.js
Function addCommentNotification
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static async addCommentNotification(req) {
const { user, params } = req;
const tripRequestInfoObject = {
where: {
id: params.tripRequestId
Function newBookingNotification
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static async newBookingNotification(req) {
const userQueryObject = {
where: { id: req.user.id }
};
const travelAdminQueryObject = {