Skip to content
Browse files

Fix for unused argument when updating profile.

  • Loading branch information...
1 parent 2ff3a7b commit 03549dc90edb8c8317b2e3334e445d05e65fbae0 @bnjbvr committed
Showing with 3 additions and 3 deletions.
  1. +2 −2 example/test-profile.js
  2. +1 −1 lib/profile.coffee
View
4 example/test-profile.js
@@ -23,7 +23,7 @@ fs.readFile( 'credentials.user.js', function(err, data) {
var newProfile = profile;
profile.bio += ' (CoffeeScript rules, BTW)';
- client.profile.update('basic', newProfile, {}, function(err, enhancedProfile) {
+ client.profile.update('basic', newProfile, function(err, enhancedProfile) {
if(err) { console.error('ERROR: '+ err ); return; }
console.log('Enhanced updated profile: ' + JSON.stringify(enhancedProfile) );
@@ -32,7 +32,7 @@ fs.readFile( 'credentials.user.js', function(err, data) {
if(err) { console.error( err ); return; }
console.log('Deletion seems ok.');
- client.profile.update('basic', oldProfile, {}, function(err) {
+ client.profile.update('basic', oldProfile, function(err) {
console.log('Old profile set back.');
});
});
View
2 lib/profile.coffee
@@ -25,7 +25,7 @@ class Profile extends SubModule
@call reqParam, rcb
@
- update: ( type, profile, params, cb ) =>
+ update: ( type, profile, cb ) =>
found = Profile::TYPES[ type ]
if found
valid = ( !!profile[ field ] for field in found.required ).reduce (a,b) ->

0 comments on commit 03549dc

Please sign in to comment.
Something went wrong with that request. Please try again.