pfitzpaddy / ngm-reportEngine

SailsJS Rest API service for reporting
1 stars 14 forks source link

Update add mpc download fields #200

Closed drfaustusfade closed 4 years ago

drfaustusfade commented 4 years ago
  1. adding into download grant, transfer types, total amount transferred
  2. updating project save to return budget progress in the same order
    // ngm-reporthub.server.build +2 lines activities processing
    db.getCollection('activities').find({}).forEach(function (d) { if( d.mpc_transfer_category_id && d.mpc_transfer_category_id.length ) { d.mpc_transfer_category_id = JSON.parse(d.mpc_transfer_category_id); db.getCollection('activities').save(d); } });
    db.getCollection('activities').find({}).forEach(function (d) { if( d.mpc_grant_type_id && d.mpc_grant_type_id.length ) { d.mpc_grant_type_id = JSON.parse(d.mpc_grant_type_id); db.getCollection('activities').save(d); } });
pfitzpaddy commented 4 years ago

Updated on DEV and PROD