diff --git a/Hole-Fixing/User.Bot.js b/Hole-Fixing/User.Bot.js index fde452669..94ce6c2f8 100644 --- a/Hole-Fixing/User.Bot.js +++ b/Hole-Fixing/User.Bot.js @@ -460,6 +460,8 @@ charlyStorage.getTextFile(filePath, fileName, onNextFileReceived, true); + console.log("[INFO] start -> findNextHole -> readNextFile -> reading file at dateForPath = " + dateForPath); + function onNextFileReceived(err, text) { try { @@ -592,7 +594,7 @@ let lastRecordedTradeId = 0; let lastRecordedCounter = 0; - if (holeFixingStatusReport !== undefined) { // The whole could have benn found before the monthly report was created. + if (holeFixingStatusReport.lastTrade !== undefined) { // The whole could have benn found before the monthly report was created. lastRecordedTradeId = holeFixingStatusReport.lastTrade.id; lastRecordedCounter = holeFixingStatusReport.lastTrade.counter; @@ -728,6 +730,8 @@ charlyStorage.getTextFile(filePath, fileName, onNextFileReceived, true); + console.log("[INFO] start -> findNextHole -> findEndOfHole -> reading file at dateForPath = " + dateForPath); + function onNextFileReceived(err, text) { try { @@ -1097,6 +1101,8 @@ charlyStorage.createTextFile(filePath, fileName, fileContent + '\n', onFileCreated); + console.log("[INFO] start -> tradesReadyToBeSaved -> nextRecord -> creating file at dateForPath = " + dateForPath); + function onFileCreated(err) { try {