periodically update sanctions db

This commit is contained in:
Josh Harvey 2018-05-04 19:06:31 +03:00
parent 43ac3f5923
commit d3b7e7c2ad
3 changed files with 12 additions and 14 deletions

View file

@ -14,8 +14,6 @@ let structs = null
const readdir = util.promisify(fs.readdir)
function load () {
// NOTE: Not sure how you push code updates to existing clients. This problem
// might pop up if new code is pushed, without re-doing setup.
if (!options.ofacDataDir) {
const message = 'The ofacDataDir option has not been set in lamassu.json'
return Promise.reject(new Error(message))