2019-08-01 18:43:43 +00:00
|
|
|
const db = require('../../data/dbConfig');
|
|
|
|
|
|
|
|
module.exports = {
|
2019-08-01 19:12:20 +00:00
|
|
|
getDailyAverages
|
2019-08-01 23:18:56 +00:00
|
|
|
};
|
2019-08-01 18:43:43 +00:00
|
|
|
|
2019-08-01 19:12:20 +00:00
|
|
|
function getDailyAverages(id) {
|
2019-08-01 20:31:44 +00:00
|
|
|
return db('dailyAverages')
|
2019-08-01 23:18:56 +00:00
|
|
|
.where({user_id : id });
|
2019-08-01 18:43:43 +00:00
|
|
|
}
|