chore: temp update client version in dev mode

This commit is contained in:
Bobby 2022-10-06 02:40:41 +07:00
parent 95e5956313
commit 0633f2c78e
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09

View File

@ -256,6 +256,9 @@ safe.use('/api', api)
utils.versionStrings = {}
if (config.cacheControl) {
const versions = require('./src/versions')
if (versions['1'] && utils.devmode) {
versions['1'] = String(Math.ceil(Date.now() / 1000))
}
for (const type in versions) {
utils.versionStrings[type] = `?_=${versions[type]}`
}