diff --git a/lib/public-traffic-stats.ts b/lib/public-traffic-stats.ts index 5e3e01b..f25437a 100644 --- a/lib/public-traffic-stats.ts +++ b/lib/public-traffic-stats.ts @@ -847,7 +847,8 @@ function persistentTrafficCacheEnabled() { } async function ensurePersistentTrafficCacheTable() { - if (persistentCacheTableEnsured || !persistentTrafficCacheEnabled()) return false + if (persistentCacheTableEnsured) return true + if (!persistentTrafficCacheEnabled()) return false const { prisma } = await import('./prisma')