diff options
Diffstat (limited to 'app/client/modules/morph/morph.tasks.js')
| -rw-r--r-- | app/client/modules/morph/morph.tasks.js | 15 |
1 files changed, 7 insertions, 8 deletions
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) } |
