mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-10 03:56:37 +08:00
last_sessionInc
This commit is contained in:
parent
bfe7c5b2fe
commit
d8d4253c06
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user