Skip to content

Commit

Permalink
better check for bulk unsub set up
Browse files Browse the repository at this point in the history
  • Loading branch information
elie222 committed Mar 3, 2025
1 parent 30b81b4 commit 2b9a9c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/web/app/(app)/setup/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { auth } from "@/app/api/auth/[...nextauth]/auth";
import prisma from "@/utils/prisma";
import Link from "next/link";
import { Shield, Tag, Archive, Check, Zap } from "lucide-react";
import { auth } from "@/app/api/auth/[...nextauth]/auth";
import prisma from "@/utils/prisma";

export default async function SetupPage() {
const session = await auth();
Expand All @@ -17,7 +17,7 @@ export default async function SetupPage() {
take: 2,
},
newsletters: {
where: { status: "UNSUBSCRIBED" },
where: { status: { not: null } },
take: 1,
},
},
Expand Down

1 comment on commit 2b9a9c0

@vercel
Copy link

@vercel vercel bot commented on 2b9a9c0 Mar 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.