mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Fix input of the statusOfLastHeartbeat function
This commit is contained in:
parent
26e234c132
commit
488504c3fd
1 changed files with 3 additions and 3 deletions
|
@ -190,11 +190,11 @@ export default {
|
|||
|
||||
/**
|
||||
* Returns the status of the last heartbeat
|
||||
* @param {object} monitor Monitor to get status for
|
||||
* @param {number} monitorId Id of the monitor to get status for
|
||||
* @returns {number} Status of the last heartbeat
|
||||
*/
|
||||
statusOfLastHeartbeat(monitor) {
|
||||
let heartbeats = this.$root.heartbeatList[this.monitorId] ?? [];
|
||||
statusOfLastHeartbeat(monitorId) {
|
||||
let heartbeats = this.$root.heartbeatList[monitorId] ?? [];
|
||||
let lastHeartbeat = heartbeats[heartbeats.length - 1];
|
||||
return lastHeartbeat?.status;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue