|
|
@ -125,7 +125,7 @@ define([
|
|
|
|
exp.updatePinLimits = function (cb) {
|
|
|
|
exp.updatePinLimits = function (cb) {
|
|
|
|
rpc.send('UPDATE_LIMITS', undefined, function (e, response) {
|
|
|
|
rpc.send('UPDATE_LIMITS', undefined, function (e, response) {
|
|
|
|
if (e) { return void cb(e); }
|
|
|
|
if (e) { return void cb(e); }
|
|
|
|
if (response && typeof response === "number") {
|
|
|
|
if (response && response.length && typeof(response[0]) === "number") {
|
|
|
|
cb (void 0, response);
|
|
|
|
cb (void 0, response);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
cb('INVALID_RESPONSE');
|
|
|
|
cb('INVALID_RESPONSE');
|
|
|
@ -136,8 +136,8 @@ define([
|
|
|
|
exp.getLimit = function (cb) {
|
|
|
|
exp.getLimit = function (cb) {
|
|
|
|
rpc.send('GET_LIMIT', undefined, function (e, response) {
|
|
|
|
rpc.send('GET_LIMIT', undefined, function (e, response) {
|
|
|
|
if (e) { return void cb(e); }
|
|
|
|
if (e) { return void cb(e); }
|
|
|
|
if (response && typeof response === "number") {
|
|
|
|
if (response && response.length && typeof(response[0]) === "number") {
|
|
|
|
cb (void 0, response);
|
|
|
|
cb (void 0, response[0]);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
cb('INVALID_RESPONSE');
|
|
|
|
cb('INVALID_RESPONSE');
|
|
|
|
}
|
|
|
|
}
|
|
|
|