OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
fix: allow self-hosted to import without active subscription (#356)
Carl-Gerhard Lindesvärdba7b71553e7e
diff --git a/packages/db/src/prisma-client.ts b/packages/db/src/prisma-client.tsindex ece87ad1a..2cf1ca567 100644--- a/packages/db/src/prisma-client.ts+++ b/packages/db/src/prisma-client.ts@@ -95,6 +95,10 @@ const getPrismaClient = () => {subscriptionCanceledAt: true,},compute(org) {+ if (process.env.SELF_HOSTED === 'true') {+ return true;+ }+return (org.subscriptionStatus === 'active' &&org.subscriptionEndsAt &&