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 { needsSettingsReload, settingsCache } = state
|
||||||
const operatorId = res.locals.operatorId
|
const operatorId = res.locals.operatorId
|
||||||
const versionId = req.headers['config-version']
|
const versionId = req.headers['config-version']
|
||||||
if (versionId !== state.oldVersionId) {
|
|
||||||
state.oldVersionId = versionId
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Priority of configs to retrieve
|
// Priority of configs to retrieve
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ const SETTINGS_CACHE_REFRESH = 3600
|
||||||
|
|
||||||
module.exports = (function () {
|
module.exports = (function () {
|
||||||
return {
|
return {
|
||||||
oldVersionId: 'unset',
|
|
||||||
needsSettingsReload: {},
|
needsSettingsReload: {},
|
||||||
settingsCache: new NodeCache({
|
settingsCache: new NodeCache({
|
||||||
stdTTL: SETTINGS_CACHE_REFRESH,
|
stdTTL: SETTINGS_CACHE_REFRESH,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue