fix: unwrap all the promises
This commit is contained in:
parent
d43c661126
commit
07160e367a
@ -20,10 +20,10 @@ async function createCache() {
|
||||
|
||||
const cache = await createCache();
|
||||
|
||||
export function get(id: string) {
|
||||
return cache.get(id);
|
||||
export async function get(id: string) {
|
||||
return await cache.get(id);
|
||||
}
|
||||
|
||||
export function set(id: string, content: any) {
|
||||
return cache.set(id, content);
|
||||
export async function set(id: string, content: any) {
|
||||
return await cache.set(id, content);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user