From e055ca78a53e0f0b8f4b3a351717a8987d6706eb Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 26 Jun 2018 01:55:55 +0200 Subject: params should pass thru.. --- app/client/modules/morph/morph.tasks.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'app/client/modules/morph/morph.tasks.js') diff --git a/app/client/modules/morph/morph.tasks.js b/app/client/modules/morph/morph.tasks.js index 67abc8a..ad88fc0 100644 --- a/app/client/modules/morph/morph.tasks.js +++ b/app/client/modules/morph/morph.tasks.js @@ -7,17 +7,16 @@ import actions from '../../actions' import module from './morph.module' -export const fetch_task = (url, file_id, dataset) => dispatch => { - if (! url) return console.log('input file inaccessible (no url)') +export const morph_task = (state, folder) => dispatch => { const task = { module: module.name, - activity: 'fetch', - dataset: dataset, + activity: 'morph', + dataset: state.a, + folder_id: folder.id, opt: { - url, - file_id, - dataset, - } + ...state, + dataset_module: 'pix2pihd', + }, } return actions.queue.add_task(task) } -- cgit v1.2.3-70-g09d2