NodeBB/NodeBB

View on GitHub
src/database/postgres.js

Summary

Maintainability
C
7 hrs
Test Coverage

Function checkUpgrade has 237 lines of code (exceeds 75 allowed). Consider refactoring.
Open

async function checkUpgrade(client) {
    const res = await client.query(`
SELECT EXISTS(SELECT *
                FROM "information_schema"."columns"
               WHERE "table_schema" = 'public'
Severity: Major
Found in src/database/postgres.js - About 7 hrs to fix

    There are no issues that match your filters.

    Category
    Status