mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 17:29:08 +08:00
remove some debug msg
This commit is contained in:
@@ -66,7 +66,6 @@ class Monitor extends BeanModel {
|
||||
bean.duration = dayjs(bean.time).diff(dayjs(previousBeat.time), 'second');
|
||||
} else {
|
||||
bean.duration = 0;
|
||||
console.log(previousBeat)
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -167,7 +166,7 @@ class Monitor extends BeanModel {
|
||||
let avgPing = parseInt(await R.getCell(`
|
||||
SELECT AVG(ping)
|
||||
FROM heartbeat
|
||||
WHERE time > DATE('now', ? || ' hours')
|
||||
WHERE time > DATETIME('now', ? || ' hours')
|
||||
AND ping IS NOT NULL
|
||||
AND monitor_id = ? `, [
|
||||
-duration,
|
||||
@@ -189,7 +188,7 @@ class Monitor extends BeanModel {
|
||||
let downtimeList = await R.getAll(`
|
||||
SELECT duration, time, status
|
||||
FROM heartbeat
|
||||
WHERE time > DATE('now', ? || ' hours')
|
||||
WHERE time > DATETIME('now', ? || ' hours')
|
||||
AND monitor_id = ? `, [
|
||||
-duration,
|
||||
monitorID
|
||||
|
@@ -124,7 +124,6 @@ class Notification {
|
||||
const client = new Discord.Client();
|
||||
await client.login(notification.discordToken)
|
||||
|
||||
console.log(notification.discordChannelID)
|
||||
const channel = await client.channels.fetch(notification.discordChannelID);
|
||||
await channel.send(msg);
|
||||
|
||||
|
Reference in New Issue
Block a user