Skip to content
Snippets Groups Projects
Commit 805fb94a authored by wactbprot's avatar wactbprot
Browse files

data.ids && data.ToExchange

parent 87a3d1ad
No related branches found
No related tags found
No related merge requests found
......@@ -41,10 +41,17 @@ module.exports = function (task, cb) {
request.exec(con, task, wrtdata, function (err, data) {
log.debug(data)
if (!err) {
if (data.ids && data.ToExchange) {
utils.write_to_id(task, data, function() {
utils.write_to_id(task, data, cb);
});
}
if (data.ids) {
log.info("data contains ids");
utils.write_to_id(task, data, cb);
}
if (data.ToExchange) {
log.info("response contains exchange data");
utils.write_to_exchange(task, data, cb);
}
if (data.ok) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment