mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-26 05:25:56 +00:00
Compare commits
3 commits
6360108a5f
...
0d22d82134
Author | SHA1 | Date | |
---|---|---|---|
|
0d22d82134 | ||
|
03beef8006 | ||
|
df2f76dbe3 |
2 changed files with 9 additions and 1 deletions
|
@ -40,6 +40,14 @@ class Heartbeat extends BeanModel {
|
|||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: Find the msg from the `msg` table and get the msg_id
|
||||
* @param value
|
||||
*/
|
||||
set msg(value) {
|
||||
throw new Error("Not implemented yet")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = Heartbeat;
|
||||
|
|
|
@ -485,7 +485,7 @@ function ApiCache() {
|
|||
}
|
||||
|
||||
if (typeof duration === "string") {
|
||||
let split = duration.match(/^([\d\.,]+)\s?(\w+)$/);
|
||||
let split = duration.match(/^([\d\.,]+)\s?([a-zA-Z]+)$/);
|
||||
|
||||
if (split.length === 3) {
|
||||
let len = parseFloat(split[1]);
|
||||
|
|
Loading…
Add table
Reference in a new issue