File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,9 @@ ZCRMRestClient.parseAndConstructObject = function(response){
314314
315315 resultObj . refresh_token = body . refresh_token ;
316316 }
317-
317+ if ( ! body . expires_in_sec ) {
318+ body . expires_in = body . expires_in * 1000 ;
319+ }
318320 resultObj . expires_in = body . expires_in + current_time ;
319321 }
320322 return resultObj ;
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ function promiseResponse(request) {
2323 var url = OAuth . constructurl ( 'generate_token' ) ;
2424
2525 OAuth . generateTokens ( url ) . then ( function ( response ) {
26-
2726 var result_obj = crmclient . parseAndConstructObject ( response ) ;
2827
2928 mysql_util . updateOAuthTokens ( result_obj ) . then ( function ( response ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " zcrmsdk" ,
3- "version" : " 0.0.14 " ,
3+ "version" : " 0.0.16 " ,
44 "description" : " Node SDK for Zoho CRM" ,
55 "main" : " lib/js/ZCRMRestClient" ,
66 "dependencies" : {
77 "fs" : " 0.0.1-security" ,
8- "mysql" : " ^2.15.0 " ,
8+ "mysql" : " ^2.17.1 " ,
99 "properties-reader" : " 0.0.16" ,
1010 "querystring" : " ^0.2.0" ,
11- "request" : " ^2.81 .0"
11+ "request" : " ^2.88 .0"
1212 },
1313 "keywords" : [
1414 " Node" ,
You can’t perform that action at this time.
0 commit comments