Send data to Airtable again
This commit is contained in:
parent
03e3d84c5c
commit
54cd1b36bc
1 changed files with 7 additions and 7 deletions
14
api/app.js
14
api/app.js
|
@ -131,13 +131,13 @@ async function report() {
|
|||
let oldest = await fetchOldest(channel);
|
||||
let latest = await fetchLatest(channel);
|
||||
let diff = latest - oldest;
|
||||
// addData('increase', {
|
||||
// "Date": moment().subtract(1, "days").format("YYYY-MM-DD"),
|
||||
// "increase": diff,
|
||||
// "stats": [
|
||||
// "rec2XI8QAsPr7EMVB"
|
||||
// ]
|
||||
// })
|
||||
addData('increase', {
|
||||
"Date": moment().subtract(1, "days").format("YYYY-MM-DD"),
|
||||
"increase": diff,
|
||||
"stats": [
|
||||
"rec2XI8QAsPr7EMVB"
|
||||
]
|
||||
})
|
||||
let newStats = await getStats();
|
||||
averageSpeed = newStats.fields.average.toFixed(3);
|
||||
let thousandsGoal = Math.ceil(latest / 1000) * 1000;
|
||||
|
|
Loading…
Reference in a new issue