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

@@ -706,14 +706,19 @@ export default class Client extends EventEmitter {
}
// def updateServer
updateServer(server, name, region, callback = (/*err, srv*/) => { }) {
updateServer(server, options, region, callback = (/*err, srv*/) => { }) {
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)
return this.internal.updateServer(server, options)
.then(dataCallback(callback), errorCallback(callback));
}