Skip to content

Commit

Permalink
changed formatting again
Browse files Browse the repository at this point in the history
  • Loading branch information
npunati27 committed Oct 19, 2023
1 parent 70f9fe0 commit 153672f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/services/admission/admission-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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" });
Expand Down

0 comments on commit 153672f

Please sign in to comment.