use team redis keys to resolve team gated features
This commit is contained in:
1 parent
0a4dcebed7
commit
cd2b303e89
7 files changed
+58
-13
No files matched your search
@@ -44,3 +44,9 @@ export async function fetchAccount(userId: string) {
|
||||
|
||||
return account;
|
||||
}
|
||||
|
||||
export async function fetchTeam(teamId: string) {
|
||||
const team = await redis.client.get(`team:${teamId}`);
|
||||
|
||||
return team;
|
||||
}
|
||||
Reference in new issue
Block a user