client/app/components/polling/polling.service.js
// Because if q.all reject, it don't sent fail task id
Because if q.all reject, it don't sent fail task id
Because if q . all reject it don ' t sent fail task id
function cleanFailTask(eachTask, watchedTasksList) {
      const idTask = idtask(watchedTasksList[eachTask].task.id);
      $http.get(watchedTasksList[eachTask].url).then(
        (task) => {
          taskHandling(task, watchedTasksList);
        },
        (error) => {
          angular.forEach(watchedTasksPromise[idTask], (value) => {
            value.pollPromise.reject(error.data);
          });
          delete watchedTasksPromise[idTask];
          delete watchedTasksList[idTask]; 
        },
      );
    }
function cleanFailTask ( eachTask , watchedTasksList ) { const idTask = idtask ( watchedTasksList [ eachTask ] . task . id ) ; $http . get ( watchedTasksList [ eachTask ] . url ) . then ( ( task ) => { taskHandling ( task , watchedTasksList ) ; } , ( error ) => { angular . forEach ( watchedTasksPromise [ idTask ] , ( value ) => { value . pollPromise . reject ( error . data ) ; } ) ; delete watchedTasksPromise [ idTask ] ; delete watchedTasksList [ idTask ] ; } , ) ; }
Because if q.all reject, it don't sent fail task id
Because if q . all reject it don ' t sent fail task id
// eslint-disable-line no-param-reassign