Co-authored-by: GJS <homelab.api@gmail.com>
This commit is contained in:
Louis Lam 2024-12-10 06:17:07 +08:00
parent c0fe669cd8
commit 397411bd27
2 changed files with 9 additions and 7 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "uptime-kuma", "name": "uptime-kuma",
"version": "2.0.0-dev", "version": "2.0.0-beta.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "uptime-kuma", "name": "uptime-kuma",
"version": "2.0.0-dev", "version": "2.0.0-beta.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@grpc/grpc-js": "~1.8.22", "@grpc/grpc-js": "~1.8.22",

View file

@ -892,11 +892,13 @@ class Database {
AND important = 0 AND important = 0
AND time < ${sqlHourOffset} AND time < ${sqlHourOffset}
AND id NOT IN ( AND id NOT IN (
SELECT id SELECT id FROM (
FROM heartbeat SELECT id
WHERE monitor_id = ? FROM heartbeat
ORDER BY time DESC WHERE monitor_id = ?
LIMIT ? ORDER BY time DESC
LIMIT ?
) AS limited_ids
) )
`, [ `, [
monitor.id, monitor.id,