Skip to content

Commit

Permalink
revert d6abd47
Browse files Browse the repository at this point in the history
  • Loading branch information
pathikrit committed May 14, 2024
1 parent d6abd47 commit d2a0cab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const config = {
},

// Sometimes the URL may contain a PDF of the wrong date - enable this to try and parse the date from PDF and check if it is correct
dateCheck: false // TODO: disabled for now since we cannot install tesseract on the render.com platform
dateCheck: !env.isProd // TODO: disabled for now since we cannot install tesseract on the render.com platform
}

/** We store hashes of all PDFs we dowload to do a quick verification that we are not redownloading same file twice */
Expand Down Expand Up @@ -230,7 +230,7 @@ app.locals = Object.assign(app.locals, config, {env})

// Kickoff download and export the app if this is a test so test framework can start the server else we start it ourselves
module.exports = scheduleAndRun(downloadAll).then(() => env.isTest ? app : app.listen(config.port, () => {
log.info(`\nStarted server on port ${config.port} with refreshInterval of ${config.refreshInterval.humanize()} ...`)
log.info(`\nStarted server on port ${config.port} with paper refresh interval of ${config.refreshInterval.humanize()} ...`)

const dateToday = dayjs().tz(config.timezone)

Expand All @@ -240,6 +240,6 @@ module.exports = scheduleAndRun(downloadAll).then(() => env.isTest ? app : app.l
// Update Visionect?
if (config.visionect?.apiKey && config.visionect?.apiServer && config.visionect?.apiSecret) {
const VisionectApiClient = require('node-visionect')
// updateVss(new VisionectApiClient(config.visionect)) // TODO: Uncomment this line to enable VSS updates
updateVss(new VisionectApiClient(config.visionect)) // TODO: Uncomment this line to enable VSS updates
}
}))

0 comments on commit d2a0cab

Please sign in to comment.