update design bundle

This commit is contained in:
Eric Hulburd
2016-03-11 19:01:59 -06:00
parent 782f5cbf91
commit cdd6f8dc0f
7 changed files with 36 additions and 6 deletions

View File

@@ -102,8 +102,10 @@ class DesignDataGenerator {
}
static energyIndex(opts){
return DB.EnergyDatum.exposeForHouseAtDates(opts.house_id, opts.dates)
return DB.EnergyDatum.exposeForHouseAtDates(opts)
.then((energy_data)=>{
console.log('Energy data length')
console.log(energy_data.length)
return JSON.stringify({data: energy_data});
});
}