Skip to content
Snippets Groups Projects
Commit 3585eede authored by richard.petersen's avatar richard.petersen :sailboat:
Browse files

fix: Cannot run ui-middleware without redis

Root cause: Circular dependency causes undefined function
Solution: As the registration of the listener can be async, just use a simple setTimeout
parent c80a1aa7
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,9 @@ if (isEnabled()) {
registerLatestVersionListener(subClient)
} else {
setInterval(updateVersionProcessor, Number(process.env.CACHE_TTL))
setTimeout(() => {
setInterval(updateVersionProcessor, Number(process.env.CACHE_TTL))
})
}
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment