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/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 }); 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) {