From 612510b2c05ba7b09deb6bc1b22f3e6e84021b74 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 22 Mar 2021 15:16:45 +0900 Subject: [PATCH] refactor --- src/misc/keypair-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }