Skip to content

Commit

Permalink
🚨 Fix unresolved merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Corantin committed Oct 14, 2024
1 parent 8cd160d commit dc03642
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions apps/web/app/api/passport-oracle/daily-job/[chain]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ import { getViemChain } from "@/utils/web3";

const LIST_MANAGER_PRIVATE_KEY = process.env.LIST_MANAGER_PRIVATE_KEY ?? "";
const LOCAL_RPC = "http://127.0.0.1:8545";
<<<<<<<< HEAD:apps/web/app/api/passport-oracle/dailyJob/[chain]/route.ts

const API_ENDPOINT = "/api/passport/scores";
========
>>>>>>>> 648e2f64 (:recycle: Refactored daily job route for multi-chain support):apps/web/app/api/passport-oracle/daily-job/[chain]/route.ts

interface PassportUser {
id: string;
Expand Down Expand Up @@ -172,22 +167,15 @@ const updateScores = async (chain: string) => {
return updates;
};

<<<<<<<< HEAD:apps/web/app/api/passport-oracle/dailyJob/[chain]/route.ts
export async function POST(req: Request, { params }: Params) {
========
export async function GET(req: Request, { params }: Params) {
>>>>>>>> 648e2f64 (:recycle: Refactored daily job route for multi-chain support):apps/web/app/api/passport-oracle/daily-job/[chain]/route.ts
const apiKey = req.headers.get("Authorization");
const { chain } = params;

if (apiKey !== process.env.CRON_SECRET) {
<<<<<<<< HEAD:apps/web/app/api/passport-oracle/dailyJob/[chain]/route.ts
========
console.error("Unauthorized", {
req: req.url,
chain,
});
>>>>>>>> 648e2f64 (:recycle: Refactored daily job route for multi-chain support):apps/web/app/api/passport-oracle/daily-job/[chain]/route.ts
return NextResponse.json({ message: "Unauthorized" }, { status: 401 });
}

Expand Down

0 comments on commit dc03642

Please sign in to comment.