Permalink
Browse files

On coupon request, store the API base as well

  • Loading branch information...
1 parent 6bd5a9f commit 7826a74d8fb3354fd2ad4034d7a9eef1946305f2 @agnoster committed Feb 1, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 bin/nodester.js
View
5 bin/nodester.js
@@ -109,8 +109,9 @@ var commands = {
} else {
this.spinner('# Requesting coupon for ' + email + "... done!\n", true)
this.ok('Coupon requested. You will receive an email when capacity allows.')
- this.config.set('email', conf.email, true, function(err, key, value) {
- this.ok('Saved ' + value + ' as your email address in the global config')
+ this.config.save({ email: conf.email, base: conf.base }, true, function(err) {
+ if (err) this.fatal('Could not save config: ' + err.message)
+ this.ok('Saved email address and api server in the global config')
}.bind(this))
}
}.bind(this))

0 comments on commit 7826a74

Please sign in to comment.