cleaned up empty lines + linting

This commit is contained in:
Doruk 2025-06-14 12:38:45 +02:00
parent 94adf2c9d4
commit b41d10ec27
3 changed files with 19 additions and 23 deletions

View file

@ -100,7 +100,6 @@ router.get("/api/status-page/heartbeat/:slug", cache("1 minutes"), async (reques
heartbeatList[monitorID] = aggregatedData;
} else {
// Fall back to raw heartbeat data (auto mode or no stat data)
if (heartbeatRange === "auto") {
// Auto mode - use original LIMIT 100 logic
list = await R.getAll(`
@ -116,8 +115,7 @@ router.get("/api/status-page/heartbeat/:slug", cache("1 minutes"), async (reques
const hours = parseRangeHours(heartbeatRange);
const date = new Date();
date.setHours(date.getHours() - hours);
const dateFrom = date.toISOString().slice(0, 19).replace('T', ' ');
const dateFrom = date.toISOString().slice(0, 19).replace("T", " ");
list = await R.getAll(`
SELECT * FROM heartbeat

View file

@ -99,7 +99,6 @@ export default {
},
shortBeatList() {
if (!this.beatList) {
return [];
}
@ -130,7 +129,6 @@ export default {
},
aggregatedBeatList() {
if (!this.beatList || this.beatList.length === 0) {
return [];
}