fix: cache account
parent
9f44e607ad
commit
569ae00284
|
@ -42,7 +42,7 @@ export function fetchAccount(id: string): Promise<Account> {
|
||||||
return promise
|
return promise
|
||||||
}
|
}
|
||||||
|
|
||||||
export function fetchAccountByName(acct: string): Promise<Account> {
|
export async function fetchAccountByName(acct: string): Promise<Account> {
|
||||||
const key = `account:${acct}`
|
const key = `account:${acct}`
|
||||||
const cached = cache.get(key)
|
const cached = cache.get(key)
|
||||||
if (cached)
|
if (cached)
|
||||||
|
|
Loading…
Reference in New Issue