makeomatic/ms-files

View on GitHub
src/actions/sync.js

Summary

Maintainability
A
1 hr
Test Coverage

Function iterateOverUploadedFiles has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function iterateOverUploadedFiles(service, lock, opts = {}) {
  const { amqp, redis, provider, config: { uploadTTL, router } } = service;
  const { offset = 0, limit = 10 } = opts;
  const route = `${router.routes.prefix}.finish`;

Severity: Minor
Found in src/actions/sync.js - About 1 hr to fix

    Parsing error: The keyword 'const' is reserved
    Open

    const { ActionTransport } = require('@microfleet/plugin-router');
    Severity: Minor
    Found in src/actions/sync.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status