From 4e6f5d3d05e806b98a62c883151a7870821bd69a Mon Sep 17 00:00:00 2001 From: Hurng-Chun Lee Date: Thu, 8 Aug 2024 16:29:03 +0200 Subject: [PATCH] fixed data structure for stager POST jobs --- streamer/lib/modalityMEG.js | 12 ++++++++---- streamer/lib/modalityMRI.js | 6 ++++-- streamer/lib/modalityUSER.js | 12 ++++++++---- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/streamer/lib/modalityMEG.js b/streamer/lib/modalityMEG.js index 6731e3c..2ba9e26 100644 --- a/streamer/lib/modalityMEG.js +++ b/streamer/lib/modalityMEG.js @@ -389,9 +389,13 @@ var _execStreamerJob = function(name, config, job, cb_remove, cb_done) { // here we get the collection namespace for the project var rpost_args = { - headers: { 'Accept': 'application/json', - 'Content-Type': 'application/json' }, - data: [] + headers: { + 'Accept': 'application/json', + 'Content-Type': 'application/json' + }, + data: { + jobs: [] + } }; if ( src_list.length == 0 ) { @@ -412,7 +416,7 @@ var _execStreamerJob = function(name, config, job, cb_remove, cb_done) { for( var i=0; i