weacast/weacast-probe

View on GitHub
src/hooks/probing.js

Summary

Maintainability
A
1 hr
Test Coverage
A
95%

Function aggregateResultsQuery has 51 lines of code (exceeds 50 allowed). Consider refactoring.
Open

export async function aggregateResultsQuery (hook) {
  let query = hook.params.query
  if (query) {
    // Perform aggregation
    if (query.$aggregate) {
Severity: Major
Found in src/hooks/probing.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status