Feat: Expand and Simplify Badge Functionality (#2211)

* [expanding badges] added new configs

* [expanding badges] recieve ping in getPreviousHeartbeat()

* [expanding badges] re-added original new badges

* [expanding badges] recreate parity between old and new badges

* [expanding badges] fix linting
This commit is contained in:
Joseph
2023-02-02 23:33:48 -05:00
committed by GitHub
parent d0ac3fc207
commit 2a6d98ff01
3 changed files with 248 additions and 6 deletions

View File

@@ -1255,7 +1255,7 @@ class Monitor extends BeanModel {
*/
static async getPreviousHeartbeat(monitorID) {
return await R.getRow(`
SELECT status, time FROM heartbeat
SELECT ping, status, time FROM heartbeat
WHERE id = (select MAX(id) from heartbeat where monitor_id = ?)
`, [
monitorID