andela/team-odd-bn-backend

View on GitHub
src/services/NotificationService.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function addCommentNotification has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  static async addCommentNotification(req) {
    const { user, params } = req;
    const tripRequestInfoObject = {
      where: {
        id: params.tripRequestId
Severity: Minor
Found in src/services/NotificationService.js - About 1 hr to fix

    Function newBookingNotification has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      static async newBookingNotification(req) {
        const userQueryObject = {
          where: { id: req.user.id }
        };
        const travelAdminQueryObject = {
    Severity: Minor
    Found in src/services/NotificationService.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status