Merge pull request #37 from brendan-ch/hotfix/redis-tls

This commit is contained in:
Brendan Chen
2025-03-31 23:42:05 -07:00
committed by GitHub

View File

@@ -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);