mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
No ugly json access
This commit is contained in:
parent
1df8117105
commit
929856fd3f
1 changed files with 5 additions and 5 deletions
|
@ -115,15 +115,15 @@ function migrate(config: SBSConfig) {
|
||||||
// Redis change
|
// Redis change
|
||||||
if (config.redis) {
|
if (config.redis) {
|
||||||
const redisConfig = config.redis as any;
|
const redisConfig = config.redis as any;
|
||||||
if (redisConfig["host"] || redisConfig["port"]) {
|
if (redisConfig.host || redisConfig.port) {
|
||||||
config.redis.socket = {
|
config.redis.socket = {
|
||||||
host: redisConfig["host"],
|
host: redisConfig.host,
|
||||||
port: redisConfig["port"]
|
port: redisConfig.port
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (redisConfig["enable_offline_queue"] !== undefined) {
|
if (redisConfig.enable_offline_queue !== undefined) {
|
||||||
config.disableOfflineQueue = !redisConfig["enable_offline_queue"];
|
config.disableOfflineQueue = !redisConfig.enable_offline_queue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue