Skip to content

Commit e3b5781

Browse files
author
Tarash Agarwal
committed
Main Merge Updates
1 parent b6e6ca5 commit e3b5781

File tree

2 files changed

+2
-85
lines changed

2 files changed

+2
-85
lines changed

src/api/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint import/no-nodejs-modules: ["error", {"allow": ["crypto"]}] */
12
import { randomUUID } from "crypto";
23
import fastify, { FastifyInstance } from "fastify";
34
import FastifyAuthProvider from "@fastify/auth";
@@ -17,7 +18,7 @@ import vendingPlugin from "./routes/vending.js";
1718
import * as dotenv from "dotenv";
1819
import iamRoutes from "./routes/iam.js";
1920
import ticketsPlugin from "./routes/tickets.js";
20-
import paidEventsPlugin from "./routes/paidEvents.js";
21+
import linkryRoutes from "./routes/linkry.js";
2122
import { STSClient, GetCallerIdentityCommand } from "@aws-sdk/client-sts";
2223
import NodeCache from "node-cache";
2324
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
@@ -27,7 +28,6 @@ import stripeRoutes from "./routes/stripe.js";
2728
import membershipPlugin from "./routes/membership.js";
2829
import path from "path"; // eslint-disable-line import/no-nodejs-modules
2930
import roomRequestRoutes from "./routes/roomRequests.js";
30-
import linkryRoutes from "./routes/linkry.js";
3131

3232
dotenv.config();
3333

@@ -82,9 +82,6 @@ async function init(prettyPrint: boolean = false) {
8282
return event.requestContext.requestId;
8383
},
8484
});
85-
const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file
86-
const __dirname = path.dirname(__filename);
87-
8885
await app.register(fastifyAuthPlugin);
8986
await app.register(fastifyZodValidationPlugin);
9087
await app.register(FastifyAuthProvider);
@@ -131,7 +128,6 @@ async function init(prettyPrint: boolean = false) {
131128
async (api, _options) => {
132129
api.register(protectedRoute, { prefix: "/protected" });
133130
api.register(eventsPlugin, { prefix: "/events" });
134-
api.register(paidEventsPlugin, { prefix: "/paidEvents" });
135131
api.register(organizationsPlugin, { prefix: "/organizations" });
136132
api.register(membershipPlugin, { prefix: "/membership" });
137133
api.register(icalPlugin, { prefix: "/ical" });

tests/unit/paidEvents.test.ts

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)