File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( {
Original file line number Diff line number Diff 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 ( [
Original file line number Diff line number Diff 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 ( [
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments