loomio/loomio

View on GitHub
vue/src/shared/services/thread_filter.js

Summary

Maintainability
A
1 hr
Test Coverage

Function default has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function(options) {
  let chain = Records.discussions.collection.chain();
  chain = chain.find({discardedAt: null});
  if (options.group) { chain = chain.find({groupId: { $in: options.group.organisationIds() }}); }
  if (options.from) { chain = chain.find({lastActivityAt: { $gt: options.from }}); }
Severity: Minor
Found in vue/src/shared/services/thread_filter.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status