From ded23de96e4d052957d9daeb6c9b9b0e273f78d5 Mon Sep 17 00:00:00 2001 From: Hurng-Chun Lee Date: Sat, 24 Aug 2024 10:05:40 +0200 Subject: [PATCH] fixed bug causing stager jobs not submitted --- streamer/lib/modalityMEG.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamer/lib/modalityMEG.js b/streamer/lib/modalityMEG.js index 2ba9e26..7618153 100644 --- a/streamer/lib/modalityMEG.js +++ b/streamer/lib/modalityMEG.js @@ -429,7 +429,7 @@ var _execStreamerJob = function(name, config, job, cb_remove, cb_done) { } // post new jobs to stager - if ( rpost_args.data.length > 0 ) { + if ( rpost_args.data.jobs.length > 0 ) { c_stager.post(sconfig.url + '/jobs', rpost_args, function(rdata, resp) { if ( resp.statusCode >= 400 ) { //HTTP error var errmsg = 'HTTP error: (' + resp.statusCode + ') ' + resp.statusMessage;