Fix pressure updating

This commit is contained in:
2019-10-07 19:54:57 -04:00
parent 6fd416b7c6
commit f740ab06b9

View File

@@ -19,10 +19,12 @@ export class PressureTrendComponent implements OnInit {
ngOnInit() {
this.update();
setInterval(this.update, 60000);
setInterval(() => this.update(), 60000);
}
async update() {
this.pressureDifference = null;
const end: moment.Moment = moment();
const start: moment.Moment = moment(end).subtract(3, 'hours');