NodeBB/NodeBB

View on GitHub
src/upgrades/1.15.0/add_target_uid_to_flags.js

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

                            if (targetUid) {
                                await db.setObjectField(`flag:${flagObj.flagId}`, 'targetUid', targetUid);
                            }
Severity: Major
Found in src/upgrades/1.15.0/add_target_uid_to_flags.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            } else if (flagObj.type === 'user') {
                                await db.setObjectField(`flag:${flagObj.flagId}`, 'targetUid', targetId);
                            }
    Severity: Major
    Found in src/upgrades/1.15.0/add_target_uid_to_flags.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status