diff --git a/lib/Command/User/CreateUser.js b/lib/Command/User/CreateUser.js index 613f781..3cfbb57 100644 --- a/lib/Command/User/CreateUser.js +++ b/lib/Command/User/CreateUser.js @@ -39,7 +39,9 @@ class CreateUser { return client.getTransport() .sendRequest(options) .then(result => { - return (new GetUser(result.username)).invoke(client); + this.user.attributes.set('username', result.username); + + return this.user; }); } } diff --git a/package.json b/package.json index c1d7c9b..f90e33d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "huejay", - "version": "0.15.0", + "version": "0.15.1", "description": "Philips Hue client for Node.js", "keywords": [ "hue",