scripts/apps/search/services/SavedSearchService.ts
Function SavedSearchService
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;