betagouv/service-national-universel

View on GitHub
api/migrations/20240919125411-young-add-missing-inprogress-status.js

Summary

Maintainability
F
1 wk
Test Coverage

Function up has 1827 lines of code (exceeds 200 allowed). Consider refactoring.
Open

  async up(db, client) {
    const youngIds = [
      "5ff4c48891eee307c6e53374",
      "601489d9f8309807d83fe6ed",
      "60193ccf25755907d83f85fe",

    File 20240919125411-young-add-missing-inprogress-status.js has 1836 lines of code (exceeds 700 allowed). Consider refactoring.
    Open

    const { addSeconds } = require("date-fns");
    const { YoungModel } = require("../src/models");
    const { logger } = require("../src/logger");
    const { YOUNG_STATUS } = require("snu-lib");
    
    
    Severity: Major
    Found in api/migrations/20240919125411-young-add-missing-inprogress-status.js - About 3 days to fix

      There are no issues that match your filters.

      Category
      Status