Merge pull request #1565 from Saibamen/eslint

Fix some of ESLint warnings
This commit is contained in:
Louis Lam 2022-04-27 15:00:49 +08:00 committed by GitHub
commit 1687de163c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 80 additions and 91 deletions

View file

@ -731,7 +731,7 @@ class Monitor extends BeanModel {
} else {
// Handle new monitor with only one beat, because the beat's duration = 0
let status = parseInt(await R.getCell("SELECT `status` FROM heartbeat WHERE monitor_id = ?", [monitorID]));
let status = parseInt(await R.getCell("SELECT `status` FROM heartbeat WHERE monitor_id = ?", [ monitorID ]));
if (status === UP) {
uptime = 1;