diff --git a/lib/cache.ts b/lib/cache.ts index 6da33eb..f7d25f1 100644 --- a/lib/cache.ts +++ b/lib/cache.ts @@ -62,7 +62,7 @@ export async function get(key): Promise { } else { const res = await mongoCollection.findOne({ _id: { $in: [key] } }); if (res && res["expire"] > expire) return res["value"]; - return res; + return null; } }