mirror of https://github.com/statping/statping
fixed extra parameters passing in downtime create/update req body
parent
b72f6fb385
commit
c19628f61b
|
@ -271,10 +271,10 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { serviceId, subStatus } = this.downtime;
|
const { serviceId, subStatus, ...rest } = this.downtime;
|
||||||
|
|
||||||
const downtime = {
|
const downtime = {
|
||||||
...this.downtime,
|
...rest,
|
||||||
...(!id && { 'service_id': serviceId }),
|
...(!id && { 'service_id': serviceId }),
|
||||||
'sub_status': subStatus,
|
'sub_status': subStatus,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue