Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

small fix for new self-hosted users

daniel31x13bd26f9073891
diff --git a/apps/worker/lib/getLinkBatchFairly.ts b/apps/worker/lib/getLinkBatchFairly.ts
index 8c0e3153..7cbdd594 100644
--- a/apps/worker/lib/getLinkBatchFairly.ts
+++ b/apps/worker/lib/getLinkBatchFairly.ts
@@ -32,7 +32,9 @@ export default async function getLinkBatchFairly({
while (candidateUserIds.length < maxBatchLinks) {
const baseUserWhere: Prisma.UserWhereInput = {
- subscriptions: { is: { active: true } },
+ subscriptions: process.env.STRIPE_SECRET_KEY
+ ? { is: { active: true } }
+ : undefined,
};
const userWhere: Prisma.UserWhereInput =
lastPickedAtCursor && lastIdCursor