fix: sumsub UI and cache invalidation on l-s
This commit is contained in:
parent
d8ce011b28
commit
6ab919c38f
3 changed files with 22 additions and 7 deletions
|
|
@ -100,7 +100,9 @@ const populateSettings = function (req, res, next) {
|
|||
|
||||
return newSettingsLoader.loadLatest()
|
||||
.then(settings => {
|
||||
const versionId = settings.version
|
||||
settingsCache.set(`${operatorId}-latest`, settings)
|
||||
settingsCache.set(`${operatorId}-v${versionId}`, settings)
|
||||
if (!!needsSettingsReload[operatorId]) delete needsSettingsReload[operatorId]
|
||||
req.settings = settings
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue