UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

26 lines 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var redux_observable_1 = require("redux-observable"); var actions_1 = require("../actions"); exports.fetchJobByIdBatchSuccess = function (action$, store) { return action$.ofType(actions_1.FETCH_JOBS_BY_ID_BATCH.SUCCESS) .mergeMap(function (action) { var _a = action.result, jobs = _a.jobs, jobStatuses = _a.jobStatuses, scrMatches = _a.scrMatches, jobDelays = _a.jobDelays; var res = []; if (jobs) { res.push(actions_1.setJobsByIdBatch(jobs)); } if (jobStatuses) { res.push(actions_1.setJobStatusesByIdBatch(jobStatuses)); } if (scrMatches) { res.push(actions_1.setSmartMatchesBatch(scrMatches)); } if (jobDelays) { res.push(actions_1.setJobDelayBatch(jobDelays)); } return res; }); }; exports.fetchJobByIdBatchEpics = redux_observable_1.combineEpics(exports.fetchJobByIdBatchSuccess); //# sourceMappingURL=fetch-job-by-id-batch.js.map