diff --git a/src/misc/keypair-store.ts b/src/misc/keypair-store.ts index 43f451110..c78fdd755 100644 --- a/src/misc/keypair-store.ts +++ b/src/misc/keypair-store.ts @@ -6,5 +6,5 @@ import { Cache } from './cache'; const cache = new Cache(Infinity); export async function getUserKeypair(userId: User['id']): Promise { - return await cache.fetch(userId, async () => await UserKeypairs.findOneOrFail(userId)); + return await cache.fetch(userId, () => UserKeypairs.findOneOrFail(userId)); }