From 45038c6cb38508c893c9c29ffdc8135530ca7fe6 Mon Sep 17 00:00:00 2001 From: geir-waagboe Date: Tue, 12 Nov 2024 15:57:37 +0100 Subject: [PATCH] IS-2765: Bruke felles Aiven-cache --- server/session.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/session.ts b/server/session.ts index 72a569f..6919898 100644 --- a/server/session.ts +++ b/server/session.ts @@ -1,14 +1,14 @@ import express from "express"; import RedisStore from "connect-redis"; import session from "express-session"; -import redis from "redis"; +import { createClient } from "redis"; import * as Config from "./config"; const SESSION_MAX_AGE_SECONDS = 12 * 60 * 60; const getRedisClient = () => { - return redis.createClient({ + return createClient({ url: Config.redis.uri, username: Config.redis.username, password: Config.redis.password,