Update with parseInt

This commit is contained in:
Alexander Blair
2017-05-19 17:10:30 -07:00
parent 21ba152429
commit 245bc6454e
+1 -1
View File
@@ -274,7 +274,7 @@ function Database(){
let sharesSeen = 0;
shares[key].forEach(function(final_share){
sharesSeen += 1;
txn.putBinary(global.database.shareDB, key, global.protos.Share.encode(final_share));
txn.putBinary(global.database.shareDB, parseInt(key), global.protos.Share.encode(final_share));
if (Object.keys(shares).length === blocksSeen && sharesSeen === shares[key].length){
debug('Made it to where I can do the insert');
txn.commit();