GladysProject/Gladys

View on GitHub
server/migrations/20240211093530-default-netatmo-variable-api.js

Summary

Maintainability
A
1 hr
Test Coverage

Function up has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  up: async () => {
    const netatmoVariableEnergyApi = await db.Variable.findOne({
      where: {
        name: GLADYS_VARIABLES.ENERGY_API,
      },
Severity: Minor
Found in server/migrations/20240211093530-default-netatmo-variable-api.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status