Skip to content

Commit

Permalink
[fix] Update to Apps.update to respect new URI pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Dec 9, 2011
1 parent c3735ee commit fc2ddfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions node.js/lib/client/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ Apps.prototype.view = function (name, callback) {
// Updates the application with `name` with the specified attributes in `attrs`
//
Apps.prototype.update = function (name, attrs, callback) {
var username = this.options.get('username');
this.request('PUT', ['apps', username, name], attrs, callback, function (res, result) {
this.request('PUT', ['apps', name], attrs, callback, function (res, result) {
callback(null, result || res.statusCode);
});
};
Expand Down

0 comments on commit fc2ddfd

Please sign in to comment.