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();
|
const cache = await createCache();
|
||||||
|
|
||||||
export function get(id: string) {
|
export async function get(id: string) {
|
||||||
return cache.get(id);
|
return await cache.get(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function set(id: string, content: any) {
|
export async function set(id: string, content: any) {
|
||||||
return cache.set(id, content);
|
return await cache.set(id, content);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user