From 07160e367acc8f17bf7c68086ea471cc05742487 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Wed, 26 Jul 2023 16:34:37 +0200 Subject: [PATCH] fix: unwrap all the promises --- lib/cache.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cache.ts b/lib/cache.ts index c1866a3..32becce 100644 --- a/lib/cache.ts +++ b/lib/cache.ts @@ -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); }