Browse Source

add missing monitorID to mute()

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

+ 1
- 9
lib/api/monitor.js View File

@ -240,7 +240,7 @@ function mute(monitorId, options, callback){
} else {
params.body = ""; // create empty body
}
client.request("POST", util.format("/monitor/%s/mute"), params, callback);
client.request("POST", util.format("/monitor/%s/mute", monitorId), params, callback);
}
/*section: monitor
@ -293,16 +293,8 @@ function unmute(monitorId, scope, callback){
params.body = {
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