Closed heartforit closed 11 years ago
There is an error in your code … The first argument for updateUser()
should be an object, but you forgot the opening bracket.
This should work:
kaiseki.sessionToken = body.sessionToken;
kaiseki.updateUser(
{ email: 'nothing@nowhere.com' },
function( err, res, body, success ) {
console.log( err );
console.log( 'updated at = ', body.updatedAt );
}
);
_\node_modules\kaiseki\lib\kaiseki.js:315 opts.callback(err, res, body, success); ^ TypeError: Property 'callback' of object #node_ moduleskaisekilibkaiseki.js:315:12) at Request.init.self.callback (__\node_modules\kaiseki\n odemodules\request\main.js:122:22) at Request.EventEmitter.emit (events.js:99:17) at Request. ( _\node_modules\kaiseki\nodemod
ules\request\main.js:655:16)
at Request.EventEmitter.emit (events.js:126:20)
at IncomingMessage.Request.start.self.req.self.httpModule.request.buffer (**\node_modules\kaiseki\node_modules\request\main.js:617:14)
at IncomingMessage.EventEmitter.emit (events.js:126:20)
at IncomingMessage._emitEnd (http.js:366:10)
at HTTPParser.parserOnMessageComplete as onMessageComplete
at CleartextStream.socketOnData as ondata
Please fix this issu! Or is there any fault im doing? Call looks like:
kaiseki.sessionToken = body.sessionToken; kaiseki.updateUser(email: 'nothing@nowhere.com'}, function(err, res, body, success) { console.log(err); console.log('updated at = ', body.updatedAt); });
seems to be simple hope this get fixed! Thx for suppoting.