send note along with limit

pull/1/head
ansuz 8 years ago
parent 6dc3c62ba4
commit ff8701b6ba

@ -407,7 +407,7 @@ var updateLimits = function (config, publicKey, cb) {
if (publicKey) { if (publicKey) {
var limit = limits[publicKey]; var limit = limits[publicKey];
l = limit && typeof limit.limit === "number" ? l = limit && typeof limit.limit === "number" ?
[limit.limit, limit.plan] : [defaultLimit, '']; [limit.limit, limit.plan, limit.note] : [defaultLimit, '', ''];
} }
cb(void 0, l); cb(void 0, l);
} catch (e) { } catch (e) {
@ -431,7 +431,7 @@ var getLimit = function (Env, publicKey, cb) {
Env.defaultStorageLimit: DEFAULT_LIMIT; Env.defaultStorageLimit: DEFAULT_LIMIT;
var toSend = limit && typeof(limit.limit) === "number"? var toSend = limit && typeof(limit.limit) === "number"?
[limit.limit, limit.plan] : [defaultLimit, '']; [limit.limit, limit.plan, limit.note] : [defaultLimit, '', ''];
cb(void 0, toSend); cb(void 0, toSend);
}; };

Loading…
Cancel
Save