fix: increase OFAC list update timer
This commit is contained in:
parent
d76e84428f
commit
30a43869ec
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ const sanctionStatus = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const loadOrUpdateSanctions = () => {
|
const loadOrUpdateSanctions = () => {
|
||||||
if (!sanctionStatus.loaded || (sanctionStatus.timestamp && Date.now() > sanctionStatus.timestamp + T.minute)) {
|
if (!sanctionStatus.loaded || (sanctionStatus.timestamp && Date.now() > sanctionStatus.timestamp + T.day)) {
|
||||||
logger.info('No sanction lists loaded. Loading sanctions...')
|
logger.info('No sanction lists loaded. Loading sanctions...')
|
||||||
return ofac.load()
|
return ofac.load()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue