Fix cache refernceerror
This commit is contained in:
parent
15f7862d8b
commit
c83f9f188f
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ const userCache = new Cache<UserKeypair>(Infinity);
|
|||
const channelCache = new Cache<ChannelKeypair>(Infinity);
|
||||
|
||||
export async function getUserKeypair(userId: User['id']): Promise<UserKeypair> {
|
||||
return await cache.fetch(userId, () => UserKeypairs.findOneByOrFail({ userId }));
|
||||
return await userCache.fetch(userId, () => UserKeypairs.findOneByOrFail({ userId }));
|
||||
}
|
||||
|
||||
export async function getChannelKeypair(channelId: Channel['id']): Promise<ChannelKeypair> {
|
||||
|
|
Loading…
Add table
Reference in a new issue