fix(monitor-checks): do not export ids for monitor checks

This commit is contained in:
Bert Verhelst 2021-10-01 11:58:26 +02:00
parent 1a7b69d4aa
commit e20660adac

View file

@ -531,7 +531,7 @@ class Monitor extends BeanModel {
}
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 => {
if (MONITOR_CHECK_SELECTOR_TYPES.includes(check.type) && typeof check.value === "string" && check.value.startsWith("{")) {