mozilla/publish.webmaker.org

View on GitHub
api/modules/publishedFiles/cache.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function _getAllDataFromDB has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  _getAllDataFromDB(metaKey, bufferKeyPrefix, publishedProjectId) {
    const publishedFiles = [];
    const publishedFilesMeta = [];

    // Get all the metadata and buffers from the db with one query
Severity: Minor
Found in api/modules/publishedFiles/cache.js - About 1 hr to fix

    Function run has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      run(publishedProjectId, next) {
        if (!this.cache) {
          return PublishedFiles.query({
            where: {
              published_id: publishedProjectId
    Severity: Minor
    Found in api/modules/publishedFiles/cache.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status