fix: cache account

pull/89/head
三咲智子 2022-11-25 18:45:39 +08:00
rodzic 9f44e607ad
commit 569ae00284
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 69992F2250DFD93E
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -42,7 +42,7 @@ export function fetchAccount(id: string): Promise<Account> {
return promise
}
export function fetchAccountByName(acct: string): Promise<Account> {
export async function fetchAccountByName(acct: string): Promise<Account> {
const key = `account:${acct}`
const cached = cache.get(key)
if (cached)