set 6 month retention for hobby users

This commit is contained in:
Francis Cao committed 2025-12-17 13:28:34 -08:00
1 parent b75c15dc43
commit 37b6194c5f
2 files changed
+23 -1

No files matched your search

+12
View File
@@ -38,3 +38,15 @@ export async function fetchSession(websiteId: string, sessionId: string): Promis
return session;
}
export async function fetchAccount(websiteId: string) {
let account = null;
const cache = await redis.client.get(`cache:website:${websiteId}`);
if (cache) {
account = await redis.client.get(`account:${cache.account_id}`);
}
return account;
}