From ab47d0c330c878e7c2c7db50c1585e939b678d71 Mon Sep 17 00:00:00 2001 From: ayoobf Date: Mon, 29 Sep 2025 21:42:00 -0400 Subject: [PATCH 1/2] changed to fall 2025 points --- src/functions/points/handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/points/handler.ts b/src/functions/points/handler.ts index 48ace32..4f27d67 100644 --- a/src/functions/points/handler.ts +++ b/src/functions/points/handler.ts @@ -26,7 +26,7 @@ const points: ValidatedEventAPIGatewayProxyEvent = async (event) const db = MongoDB.getInstance(process.env.MONGO_URI); await db.connect(); const users = db.getCollection('users'); - const pointsCollection = db.getCollection('s25-points-syst'); + const pointsCollection = db.getCollection('f25-points-syst'); // Make sure user exists const user = await users.findOne({ email: email }); From ffb255afc5a970870e8769544b28438d9ab8cbd7 Mon Sep 17 00:00:00 2001 From: ayoobf Date: Mon, 29 Sep 2025 21:47:33 -0400 Subject: [PATCH 2/2] more --- src/functions/attend-event/handler.ts | 2 +- src/functions/get-buy-ins/handler.ts | 2 +- src/functions/leaderboard/handler.ts | 2 +- src/functions/update-buy-ins/handler.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/functions/attend-event/handler.ts b/src/functions/attend-event/handler.ts index bd3bca6..5483890 100644 --- a/src/functions/attend-event/handler.ts +++ b/src/functions/attend-event/handler.ts @@ -110,7 +110,7 @@ const attendEvent: ValidatedEventAPIGatewayProxyEvent = async (ev } if (event.body.points) { - const points = db.getCollection('s25-points-syst'); + const points = db.getCollection('f25-points-syst'); const userPoints = await points.findOne({ email: event.body.qr }); if (!userPoints) { await points.insertOne({ diff --git a/src/functions/get-buy-ins/handler.ts b/src/functions/get-buy-ins/handler.ts index 11ac896..5c38456 100644 --- a/src/functions/get-buy-ins/handler.ts +++ b/src/functions/get-buy-ins/handler.ts @@ -25,7 +25,7 @@ const getBuyIns: ValidatedEventAPIGatewayProxyEvent = async (even // Connect to DB const db = MongoDB.getInstance(process.env.MONGO_URI); await db.connect(); - const points = db.getCollection('s25-points-syst'); + const points = db.getCollection('f25-points-syst'); const buyIns = await points .aggregate([ diff --git a/src/functions/leaderboard/handler.ts b/src/functions/leaderboard/handler.ts index 75e09aa..ff24e16 100644 --- a/src/functions/leaderboard/handler.ts +++ b/src/functions/leaderboard/handler.ts @@ -10,7 +10,7 @@ const leaderboard: APIGatewayProxyHandler = async () => { try { const db = MongoDB.getInstance(process.env.MONGO_URI); await db.connect(); - const points = db.getCollection('s25-points-syst'); + const points = db.getCollection('f25-points-syst'); const topPlayers = await points .aggregate([ diff --git a/src/functions/update-buy-ins/handler.ts b/src/functions/update-buy-ins/handler.ts index 8feb9fa..d825805 100644 --- a/src/functions/update-buy-ins/handler.ts +++ b/src/functions/update-buy-ins/handler.ts @@ -26,7 +26,7 @@ const updateBuyIns: ValidatedEventAPIGatewayProxyEvent = async (e // connect to DB const db = MongoDB.getInstance(process.env.MONGO_URI); await db.connect(); - const pointCollection = db.getCollection('s25-points-syst'); + const pointCollection = db.getCollection('f25-points-syst'); const userPoints = await pointCollection.findOne({ email: event.body.email }); if (!userPoints || !userPoints.total_points) {