Skip to content

Commit 6b2e68d

Browse files
committed
cleanup
1 parent 290b280 commit 6b2e68d

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

src/api/routes/v2/membership.ts

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,14 @@
11
import {
2-
checkExternalMembership,
3-
checkPaidMembershipFromEntra,
42
checkPaidMembershipFromTable,
5-
setPaidMembershipInTable,
6-
MEMBER_CACHE_SECONDS,
73
checkPaidMembershipFromRedis,
84
} from "api/functions/membership.js";
95
import { FastifyPluginAsync } from "fastify";
10-
import {
11-
BaseError,
12-
InternalServerError,
13-
UnauthenticatedError,
14-
ValidationError,
15-
} from "common/errors/index.js";
16-
import { getEntraIdToken } from "api/functions/entraId.js";
17-
import { genericConfig, roleArns } from "common/config.js";
18-
import { getRoleCredentials } from "api/functions/sts.js";
19-
import { SecretsManagerClient } from "@aws-sdk/client-secrets-manager";
20-
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
6+
import { ValidationError } from "common/errors/index.js";
217
import rateLimiter from "api/plugins/rateLimiter.js";
228
import { createCheckoutSession } from "api/functions/stripe.js";
23-
import { getSecretValue } from "api/plugins/auth.js";
24-
import stripe, { Stripe } from "stripe";
25-
import rawbody from "fastify-raw-body";
269
import { FastifyZodOpenApiTypeProvider } from "fastify-zod-openapi";
2710
import * as z from "zod/v4";
28-
import {
29-
illinoisNetId,
30-
notAuthenticatedError,
31-
withTags,
32-
} from "api/components/index.js";
33-
import { getKey, setKey } from "api/functions/redisCache.js";
11+
import { notAuthenticatedError, withTags } from "api/components/index.js";
3412
import { verifyUiucIdToken } from "./mobileWallet.js";
3513

3614
function splitOnce(s: string, on: string) {

0 commit comments

Comments
 (0)