diff --git a/src/app/api/payment/route.ts b/src/app/api/payment/route.ts index aac9da3c..2f000969 100644 --- a/src/app/api/payment/route.ts +++ b/src/app/api/payment/route.ts @@ -11,7 +11,6 @@ import { env } from '@/env.mjs'; import { redisClient } from '@/lib/redis'; import { squareClient } from '@/lib/square'; import { updateMemberExpiryDate } from '@/server/update-member-expiry-date'; -import { verifyMembershipPayment } from '@/server/verify-membership-payment'; import { currentUser } from '@clerk/nextjs'; import { eq } from 'drizzle-orm'; import type { CreatePaymentLinkRequest } from 'square'; @@ -115,14 +114,3 @@ export async function PUT(request: Request) { } return Response.json({ success: true }); } - -// Get membership payment status -export async function GET() { - const user = await currentUser(); - if (!user) { - return new Response(null, { status: 401 }); - } - - const { paid } = await verifyMembershipPayment(user.id); - return Response.json({ paid }); -} diff --git a/src/app/api/user-existence/route.ts b/src/app/api/user-existence/route.ts deleted file mode 100644 index 26a0a228..00000000 --- a/src/app/api/user-existence/route.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { checkUserExists } from '@/server/check-user-exists'; -import { currentUser } from '@clerk/nextjs'; - -export async function GET() { - const user = await currentUser(); - if (!user) { - return new Response(null, { status: 401 }); - } - - const exists = await checkUserExists(user.id); - return Response.json({ exists }); -}