Browse Source

add params.body default to mute() and unmute()

pull/54/head
alexcreek 9 years ago
parent
commit
995de8f735
2 changed files with 5 additions and 1 deletions
  1. +0
    -1
      lib/api/host.js
  2. +5
    -0
      lib/api/monitor.js

+ 0
- 1
lib/api/host.js View File

@ -43,7 +43,6 @@ function mute(hostname, options, callback){
client.request("POST", util.format("/host/%s/mute", hostname), params, callback);
}
/*section: host
*comment: unmute the given host, if it is not already unmuted
*params:


+ 5
- 0
lib/api/monitor.js View File

@ -294,10 +294,15 @@ function unmute(monitorId, scope, callback){
scope: scope
};
<<<<<<< HEAD
<<<<<<< HEAD
=======
} else {
params.body = ""; // create empty body
>>>>>>> 5243bf7... add params.body default to client.prototype.request
=======
} else {
params.body = "";
>>>>>>> 4818053... add params.body default to mute() and unmute()
}
client.request("POST", util.format("/monitor/%s/unmute", monitorId), params, callback);
}


Loading…
Cancel
Save