ngin_client
Advanced tools
Comparing version 0.1.25 to 0.1.26
{ | ||
"name": "ngin_client", | ||
"version": "0.1.25", | ||
"version": "0.1.26", | ||
"description": "Node client for interacting with the NGIN API services", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -30,4 +30,16 @@ "use strict" | ||
return Url.resolve(base, 'teams/' + team_id + '/team_instances') | ||
}, | ||
save: function(options, callback) { | ||
if (typeof options == 'function') { | ||
callback = options | ||
options = {} | ||
} | ||
if (options.team_id || this.team_id){ | ||
options.method = 'PUT' | ||
} | ||
TeamInstance.__super__.save.call(this, options, callback) | ||
} | ||
}) | ||
@@ -34,0 +46,0 @@ |
43464
1381