@@ -15,14 +15,14 @@ import { getEntraIdToken } from "api/functions/entraId.js";
15
15
import { genericConfig , roleArns } from "common/config.js" ;
16
16
import { getRoleCredentials } from "api/functions/sts.js" ;
17
17
import { SecretsManagerClient } from "@aws-sdk/client-secrets-manager" ;
18
- import { DynamoDBClient , QueryCommand } from "@aws-sdk/client-dynamodb" ;
18
+ import { DynamoDBClient } from "@aws-sdk/client-dynamodb" ;
19
19
import rateLimiter from "api/plugins/rateLimiter.js" ;
20
20
import { createCheckoutSession } from "api/functions/stripe.js" ;
21
21
import { getSecretValue } from "api/plugins/auth.js" ;
22
22
import stripe , { Stripe } from "stripe" ;
23
23
import { AvailableSQSFunctions , SQSPayload } from "common/types/sqsMessage.js" ;
24
24
import { SendMessageCommand , SQSClient } from "@aws-sdk/client-sqs" ;
25
- import rawbody , { RawBodyPluginOptions } from "fastify-raw-body" ;
25
+ import rawbody from "fastify-raw-body" ;
26
26
27
27
const NONMEMBER_CACHE_SECONDS = 1800 ; // 30 minutes
28
28
const MEMBER_CACHE_SECONDS = 43200 ; // 12 hours
@@ -73,7 +73,7 @@ const membershipPlugin: FastifyPluginAsync = async (fastify, _options) => {
73
73
Body : undefined ;
74
74
Params : { netId : string } ;
75
75
} > ( "/checkout/:netId" , async ( request , reply ) => {
76
- const netId = request . params . netId ;
76
+ const netId = request . params . netId . toLowerCase ( ) ;
77
77
if ( ! validateNetId ( netId ) ) {
78
78
throw new ValidationError ( {
79
79
message : `${ netId } is not a valid Illinois NetID!` ,
@@ -147,7 +147,7 @@ const membershipPlugin: FastifyPluginAsync = async (fastify, _options) => {
147
147
Querystring : { list ?: string } ;
148
148
Params : { netId : string } ;
149
149
} > ( "/:netId" , async ( request , reply ) => {
150
- const netId = request . params . netId ;
150
+ const netId = request . params . netId . toLowerCase ( ) ;
151
151
const list = request . query . list || "acmpaid" ;
152
152
if ( ! validateNetId ( netId ) ) {
153
153
throw new ValidationError ( {
0 commit comments