Skip to content

Commit 6dbc5a1

Browse files
committed
fix(scraper): improve naming for programs scraping endpoint
1 parent a79e3a9 commit 6dbc5a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/scraper/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ app.get("/", async (c) => {
3838
});
3939

4040
// Endpoint to trigger major discovery scraping
41-
app.post("/api/majors", validateApiKey, async (c) => {
41+
app.post("/api/programs", validateApiKey, async (c) => {
4242
const db = getDB(c.env);
4343

4444
const programsUrl = new URL("/programs", c.env.SCRAPING_BASE_URL).toString();

packages/server/convex/scraper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const triggerMajorsScraping = protectedAdminAction({
2323
);
2424
}
2525

26-
const response = await fetch(`${scraperUrl}/api/majors`, {
26+
const response = await fetch(`${scraperUrl}/api/programs`, {
2727
method: "POST",
2828
headers: {
2929
"Content-Type": "application/json",

0 commit comments

Comments
 (0)