chore: remove dead code
This commit is contained in:
parent
afe8299ae7
commit
c233aa9aff
2 changed files with 0 additions and 4 deletions
|
|
@ -78,9 +78,6 @@ const populateSettings = function (req, res, next) {
|
|||
const { needsSettingsReload, settingsCache } = state
|
||||
const operatorId = res.locals.operatorId
|
||||
const versionId = req.headers['config-version']
|
||||
if (versionId !== state.oldVersionId) {
|
||||
state.oldVersionId = versionId
|
||||
}
|
||||
|
||||
try {
|
||||
// Priority of configs to retrieve
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ const SETTINGS_CACHE_REFRESH = 3600
|
|||
|
||||
module.exports = (function () {
|
||||
return {
|
||||
oldVersionId: 'unset',
|
||||
needsSettingsReload: {},
|
||||
settingsCache: new NodeCache({
|
||||
stdTTL: SETTINGS_CACHE_REFRESH,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue