universoimpulso/atena

View on GitHub
src/models/Score/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function getDailyScore has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

scoreSchema.statics.getDailyScore = async function (uuid) {
  const result = await this.aggregate([
    {
      $match: {
        user: uuid,
Severity: Minor
Found in src/models/Score/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status