app/scripts/services/survey-factory.js
Function getPendingSurveys
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getPendingSurveys = function (facilityUUID) {
//TODO: make reminder to work by interval
var deferred = $q.defer();
storageService.all(storageService.SURVEY_RESPONSE)
.then(function (surveyResponses) {