From 061b549d16a02ff7213f482c2a4366f9776e0c2a Mon Sep 17 00:00:00 2001 From: Ryo Hanafusa Date: Mon, 28 Oct 2024 11:33:40 +0000 Subject: [PATCH] send url always because it's used in showLink --- server/model/monitor.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 8c39469a..c5d2dc70 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -49,13 +49,10 @@ class Monitor extends BeanModel { id: this.id, name: this.name, sendUrl: !!this.sendUrl, + url: this.url, type: this.type, }; - if (this.sendUrl) { - obj.url = this.url; - } - if (showTags) { obj.tags = await this.getTags(); }