mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-07 13:32:35 +02:00
fix(monitor-checks): do not export ids for monitor checks
This commit is contained in:
parent
1a7b69d4aa
commit
e20660adac
1 changed files with 1 additions and 1 deletions
|
@ -531,7 +531,7 @@ class Monitor extends BeanModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
async getMonitorChecks() {
|
async getMonitorChecks() {
|
||||||
const checks = await R.getAll("SELECT mc.* FROM monitor_checks mc WHERE mc.monitor_id = ?", [this.id]);
|
const checks = await R.getAll("SELECT mc.type, mc.value FROM monitor_checks mc WHERE mc.monitor_id = ?", [this.id]);
|
||||||
|
|
||||||
checks.forEach(check => {
|
checks.forEach(check => {
|
||||||
if (MONITOR_CHECK_SELECTOR_TYPES.includes(check.type) && typeof check.value === "string" && check.value.startsWith("{")) {
|
if (MONITOR_CHECK_SELECTOR_TYPES.includes(check.type) && typeof check.value === "string" && check.value.startsWith("{")) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue