From d142eaaef71bcc3b99036d08a054f01af01e5ffc Mon Sep 17 00:00:00 2001 From: DirkSchlossmacher <62424946+DirkSchlossmacher@users.noreply.github.com> Date: Tue, 5 Dec 2023 14:31:28 +0100 Subject: [PATCH] { last_sessionInc: timeValue } --- app/utils/cloud/redisRestClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/cloud/redisRestClient.ts b/app/utils/cloud/redisRestClient.ts index 1beb129b8..5812f3547 100644 --- a/app/utils/cloud/redisRestClient.ts +++ b/app/utils/cloud/redisRestClient.ts @@ -64,7 +64,7 @@ export const incrementSessionRefreshCount = async ( try { await redis.hincrby(`session_refreshes:${email}`, dateKey, 1); const timeValue = new Date().toISOString(); // full date - await redis.hset(`monitoring`, `last_sessionInc`, timeValue); + await redis.hset(`monitoring`, { last_sessionInc: timeValue }); } catch (error) { console.error('Failed to increment session refresh count in Redis via Upstash', error); }