mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-23 17:26:47 +08:00
{ last_sessionInc: timeValue }
This commit is contained in:
@@ -64,7 +64,7 @@ export const incrementSessionRefreshCount = async (
|
|||||||
try {
|
try {
|
||||||
await redis.hincrby(`session_refreshes:${email}`, dateKey, 1);
|
await redis.hincrby(`session_refreshes:${email}`, dateKey, 1);
|
||||||
const timeValue = new Date().toISOString(); // full date
|
const timeValue = new Date().toISOString(); // full date
|
||||||
await redis.hset(`monitoring`, `last_sessionInc`, timeValue);
|
await redis.hset(`monitoring`, { last_sessionInc: timeValue });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to increment session refresh count in Redis via Upstash', error);
|
console.error('Failed to increment session refresh count in Redis via Upstash', error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user