superdesk/superdesk-client-core

View on GitHub
scripts/apps/search/services/SavedSearchService.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function SavedSearchService has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function SavedSearchService(api, $filter, $q, $rootScope) {
    var _getAll = function(endPoint, page = 1, items = [], params = null) {
        return api.query(endPoint, {max_results: 200, page: page}, params)
            .then((result) => {
                let pg = page;
Severity: Minor
Found in scripts/apps/search/services/SavedSearchService.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status