mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
empty object instead of undefined
This commit is contained in:
parent
11a80d1b15
commit
0f164cea4e
@ -214,7 +214,7 @@ export const db = new DataSource({
|
||||
tls: config.redis.tls ? {
|
||||
host: config.redis.host,
|
||||
rejectUnauthorized: false, // TODO make configurable
|
||||
} : undefined,
|
||||
} : {},
|
||||
},
|
||||
}
|
||||
: false,
|
||||
|
@ -13,7 +13,7 @@ export function createConnection() {
|
||||
tls: config.redis.tls ? {
|
||||
rejectUnauthorized: false, //TODO make configurable
|
||||
host: config.redis.host,
|
||||
} : undefined,
|
||||
} : {},
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@ export function initialize<T>(name: string, limitPerSec = -1) {
|
||||
db: config.redis.db || 0,
|
||||
tls: config.redis.tls ? {
|
||||
host: config.redis.host, //TODO add configurable cert validation
|
||||
} : undefined,
|
||||
} : {},
|
||||
},
|
||||
prefix: config.redis.prefix ? `${config.redis.prefix}:queue` : "queue",
|
||||
limiter:
|
||||
|
Loading…
Reference in New Issue
Block a user