viewer/multies.js
// Merge all the top level tasks fields
Merge all the top level tasks fields
Merge all the top level tasks fields
function simpleGatherTasks (req, res) {
  simpleGather(req, res, null, (err, results) => {
    const obj = results[0];
    for (let i = 1; i < results.length; i++) {
      shallowCopy(obj.tasks, results[i].tasks);
    }
    res.send(obj);
  });
}
function simpleGatherTasks ( req , res ) { simpleGather ( req , res , null , ( err , results ) => { const obj = results [ 0 ] ; for ( let i = 1 ; i < results . length ; i ++ ) { shallowCopy ( obj . tasks , results [ i ] . tasks ) ; } res . send ( obj ) ; } ) ; }
Merge all the top level tasks fields
Merge all the top level tasks fields