diff --git a/app/api/cron/route.tsx b/app/api/cron/route.tsx index 384ebaa..b8099eb 100644 --- a/app/api/cron/route.tsx +++ b/app/api/cron/route.tsx @@ -3,14 +3,8 @@ import { NextResponse } from 'next/server'; export async function GET(request: Request) { - // check if Authorization header is contains cron token let authorization = request.headers.get('Authorization'); - - console.warn(authorization) - console.warn(process.env.CRON_TOKEN) - - if (!authorization || authorization !== process.env.CRON_SECRET) { return NextResponse.json({ message: "Unauthorized" }, { status: 401 }) }