mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Formtting fix
This commit is contained in:
parent
b5a73e5ad7
commit
248aec8803
1 changed files with 2 additions and 2 deletions
|
@ -603,8 +603,8 @@ class Monitor extends BeanModel {
|
||||||
const { status, response } = await evaluateJsonQuery(data, this.jsonPath, this.jsonPathOperator, this.expectedValue);
|
const { status, response } = await evaluateJsonQuery(data, this.jsonPath, this.jsonPathOperator, this.expectedValue);
|
||||||
|
|
||||||
if (status) {
|
if (status) {
|
||||||
bean.status = UP;
|
bean.status = UP;
|
||||||
bean.msg = `JSON query passes (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})`
|
bean.msg = `JSON query passes (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})`;
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`JSON query does not pass (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})`);
|
throw new Error(`JSON query does not pass (comparing ${response} ${this.jsonPathOperator} ${this.expectedValue})`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue