From 569ae002845cd22a7acc095065dfe6962d497835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Fri, 25 Nov 2022 18:45:39 +0800 Subject: [PATCH] fix: cache account --- composables/cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/cache.ts b/composables/cache.ts index 853ca2bd..82af96c9 100644 --- a/composables/cache.ts +++ b/composables/cache.ts @@ -42,7 +42,7 @@ export function fetchAccount(id: string): Promise { return promise } -export function fetchAccountByName(acct: string): Promise { +export async function fetchAccountByName(acct: string): Promise { const key = `account:${acct}` const cached = cache.get(key) if (cached)