Blocked users store, move some warn messages to debug

This commit is contained in:
abalabahaha
2016-04-15 19:29:35 -07:00
parent 864126976f
commit 3ed5f4fb90
4 changed files with 55 additions and 14 deletions

View File

@@ -621,16 +621,21 @@ var Client = (function (_EventEmitter) {
// def updateServer
Client.prototype.updateServer = function updateServer(server, name, region) {
Client.prototype.updateServer = function updateServer(server, options, region) {
var callback = arguments.length <= 3 || arguments[3] === undefined ? function () /*err, srv*/{} : arguments[3];
if (typeof region === "function") {
// region is the callback
callback = region;
region = undefined;
} else if (region && typeof options === "string") {
options = {
name: options,
region: region
};
}
return this.internal.updateServer(server, name, region).then(dataCallback(callback), errorCallback(callback));
return this.internal.updateServer(server, options).then(dataCallback(callback), errorCallback(callback));
};
/**