From d8d4253c06fe7fc16d531aee3137d761aba7aec4 Mon Sep 17 00:00:00 2001 From: DirkSchlossmacher <62424946+DirkSchlossmacher@users.noreply.github.com> Date: Tue, 5 Dec 2023 14:26:33 +0100 Subject: [PATCH] last_sessionInc --- app/utils/cloud/redisRestClient.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/utils/cloud/redisRestClient.ts b/app/utils/cloud/redisRestClient.ts index 6e51c51b9..1beb129b8 100644 --- a/app/utils/cloud/redisRestClient.ts +++ b/app/utils/cloud/redisRestClient.ts @@ -63,6 +63,8 @@ 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); } catch (error) { console.error('Failed to increment session refresh count in Redis via Upstash', error); }