Update to make sure we clear the shares every submit.

This commit is contained in:
Alexander Blair
2017-05-19 17:21:50 -07:00
parent 2bbcc70ff1
commit e6cf90a230
+2 -3
View File
@@ -75,9 +75,8 @@ if (cluster.isMaster) {
setInterval(function(){
if (Object.keys(shareData).length > 0){
if (global.database.storeBulkShares(shareData)){
shareData = [];
}
global.database.storeBulkShares(shareData);
shareData = [];
}
}, 1000);