mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: 修复outage.report输出RSS报错 (#5674)
This commit is contained in:
@@ -26,7 +26,9 @@ module.exports = async (ctx) => {
|
||||
// list ("Array" in js, though) of items
|
||||
const outageHistory = [];
|
||||
|
||||
if (gaugeCount >= watchCount) {
|
||||
// 2020-09-17 output as long as it exists, avoid reporting errors
|
||||
// compatible with optional variables
|
||||
if (watchCount !== 0) {
|
||||
// alert only when it counts
|
||||
const outageReportItem = {
|
||||
title: `${serviceName} appear to be (partially) down`,
|
||||
|
||||
Reference in New Issue
Block a user