@como/como-client
Advanced tools
Comparing version 0.6.8 to 0.6.9
{ | ||
"name": "@como/como-client", | ||
"version": "0.6.8", | ||
"version": "0.6.9", | ||
"description": "Client module for Como's loaylty API", | ||
@@ -5,0 +5,0 @@ "main": "src/como.js", |
@@ -133,3 +133,5 @@ const moment = require('moment-timezone'); | ||
} | ||
if(!this.comoData.token){ | ||
this.comoData.token = this.comoData.accessToken; | ||
} | ||
return this.getCredentials(); | ||
@@ -370,4 +372,9 @@ } | ||
} = this.comoData; | ||
return api.clientUpdateMembership(env.services_root, token, locationId, pushEnable, locationEnable); | ||
try{ | ||
return api.clientUpdateMembership(env.services_root, token, locationId, pushEnable, locationEnable); | ||
} | ||
catch(e){ | ||
console.log(`clientUpdateMembership failed, token:${token}, locationId:${locationId}`); | ||
initService.logError({method: 'clientUpdateMembership', token, locationId}); | ||
} | ||
} | ||
@@ -374,0 +381,0 @@ |
Sorry, the diff of this file is too big to display
214076
4613