diff --git a/lib/remoteShare.js b/lib/remoteShare.js index 0dc884f..450fb3d 100644 --- a/lib/remoteShare.js +++ b/lib/remoteShare.js @@ -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);