From 153672ff625974aaa5f891dbc90cc8a59e7c21fa Mon Sep 17 00:00:00 2001 From: npunati27 Date: Thu, 19 Oct 2023 12:15:00 -0500 Subject: [PATCH] changed formatting again --- src/app.ts | 2 +- src/services/admission/admission-router.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app.ts b/src/app.ts index f386f4fb..028aafdb 100644 --- a/src/app.ts +++ b/src/app.ts @@ -32,13 +32,13 @@ if (!TEST) { app.use(express.json()); // Add routers for each sub-service +app.use("/admission/", admissionRouter); app.use("/auth/", authRouter); app.use("/event/", eventRouter); app.use("/newsletter/", newsletterRouter); app.use("/profile/", profileRouter); app.use("/staff/", staffRouter); app.use("/user/", userRouter); -app.use("/admission/", admissionRouter) app.use("/version/", versionRouter); // Ensure that API is running diff --git a/src/services/admission/admission-router.ts b/src/services/admission/admission-router.ts index 94b0bd50..de83b0a6 100644 --- a/src/services/admission/admission-router.ts +++ b/src/services/admission/admission-router.ts @@ -11,7 +11,6 @@ import * as console from "console"; const admissionRouter: Router = Router(); - admissionRouter.get("/", strongJwtVerification, async (_: Request, res: Response) => { const token: JwtPayload = res.locals.payload as JwtPayload; if (!hasElevatedPerms(token)) { @@ -36,7 +35,7 @@ admissionRouter.put("/", strongJwtVerification, async (req: Request, res: Respon for (const entry of updateEntries.entries) { const updatedDecision: DecisionInfo | null = await Models.DecisionInfo.findOneAndUpdate( { userId: entry.userId }, - {$set: {status: entry.status}} + { $set: { status: entry.status } }, ); if (updatedDecision?.status != entry.status) { return res.status(Constants.INTERNAL_ERROR).send({ error: "NotUpdated" });