Skip to content

Commit

Permalink
style: reorganized imports
Browse files Browse the repository at this point in the history
  • Loading branch information
NamitBhutani committed Jun 11, 2024
1 parent 8025ddc commit 177fddc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/src/controllers/user/retrieveAnnouncements.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Request, Response } from "express";
import { announcementRepository } from "../../repositories/anouncementRepository.js";
import { z } from "zod";
import { namedNonEmptyStringType } from "../../../../lib/src/zodFieldTypes.js";
import { validate } from "../../middleware/zodValidateRequest.js";
import { z } from "zod";
import { announcementRepository } from "../../repositories/anouncementRepository.js";
const announcementSchema = z.object({
body: z.object({
title: namedNonEmptyStringType("title"),
Expand Down
2 changes: 1 addition & 1 deletion backend/src/routers/userRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import {
getUserDetails,
getUserDetailsValidator,
} from "../controllers/user/getUserDetails.js";
import { authenticate } from "../middleware/auth.js";
import {
getAllAnnouncements,
getAnnouncementValidator,
} from "../controllers/user/retrieveAnnouncements.js";
import { authenticate } from "../middleware/auth.js";

const userRouter = express.Router();

Expand Down

0 comments on commit 177fddc

Please sign in to comment.