{ last_sessionInc: timeValue }

This commit is contained in:
DirkSchlossmacher 2023-12-05 14:31:28 +01:00
parent d8d4253c06
commit d142eaaef7

View File

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