mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
Merge pull request #37 from brendan-ch/hotfix/redis-tls
This commit is contained in:
@@ -15,6 +15,10 @@ export class RedisNotificationRepository implements NotificationRepository {
|
|||||||
constructor(
|
constructor(
|
||||||
private redisClient = createClient({
|
private redisClient = createClient({
|
||||||
url: process.env.REDIS_URL,
|
url: process.env.REDIS_URL,
|
||||||
|
socket: {
|
||||||
|
tls: (process.env.REDIS_URL?.match(/rediss:/) != null),
|
||||||
|
rejectUnauthorized: false,
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
) {
|
) {
|
||||||
this.getAllNotificationsForShuttleAndStopId = this.getAllNotificationsForShuttleAndStopId.bind(this);
|
this.getAllNotificationsForShuttleAndStopId = this.getAllNotificationsForShuttleAndStopId.bind(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user