Skip to content

Commit 7bd2374

Browse files
authored
Merge pull request #148 from HackRU/Fall2025-Points
more references
2 parents 79b3f03 + ffb255a commit 7bd2374

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/functions/attend-event/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const attendEvent: ValidatedEventAPIGatewayProxyEvent<typeof schema> = async (ev
110110
}
111111

112112
if (event.body.points) {
113-
const points = db.getCollection('s25-points-syst');
113+
const points = db.getCollection('f25-points-syst');
114114
const userPoints = await points.findOne({ email: event.body.qr });
115115
if (!userPoints) {
116116
await points.insertOne({

src/functions/get-buy-ins/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const getBuyIns: ValidatedEventAPIGatewayProxyEvent<typeof schema> = async (even
2525
// Connect to DB
2626
const db = MongoDB.getInstance(process.env.MONGO_URI);
2727
await db.connect();
28-
const points = db.getCollection('s25-points-syst');
28+
const points = db.getCollection('f25-points-syst');
2929

3030
const buyIns = await points
3131
.aggregate([

src/functions/leaderboard/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const leaderboard: APIGatewayProxyHandler = async () => {
1010
try {
1111
const db = MongoDB.getInstance(process.env.MONGO_URI);
1212
await db.connect();
13-
const points = db.getCollection('s25-points-syst');
13+
const points = db.getCollection('f25-points-syst');
1414

1515
const topPlayers = await points
1616
.aggregate([

src/functions/update-buy-ins/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const updateBuyIns: ValidatedEventAPIGatewayProxyEvent<typeof schema> = async (e
2626
// connect to DB
2727
const db = MongoDB.getInstance(process.env.MONGO_URI);
2828
await db.connect();
29-
const pointCollection = db.getCollection('s25-points-syst');
29+
const pointCollection = db.getCollection('f25-points-syst');
3030
const userPoints = await pointCollection.findOne({ email: event.body.email });
3131

3232
if (!userPoints || !userPoints.total_points) {

0 commit comments

Comments
 (0)