mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
remove unneeded validation
This commit is contained in:
parent
2c8cefc784
commit
0325c14d42
1 changed files with 0 additions and 6 deletions
|
@ -1493,12 +1493,6 @@ class Monitor extends BeanModel {
|
||||||
if (this.interval < MIN_INTERVAL_SECOND) {
|
if (this.interval < MIN_INTERVAL_SECOND) {
|
||||||
throw new Error(`Interval cannot be less than ${MIN_INTERVAL_SECOND} seconds`);
|
throw new Error(`Interval cannot be less than ${MIN_INTERVAL_SECOND} seconds`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure URL is set to null for monitor types that don't use it,
|
|
||||||
// or the URL may be mistakenly used later (e.g., in notifications)
|
|
||||||
if (![ "http", "keyword", "json-query", "real-browser" ].includes(this.type)) {
|
|
||||||
this.url = null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue