set 6 month retention for hobby users
This commit is contained in:
1 parent
b75c15dc43
commit
37b6194c5f
2 files changed
+23
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user