Skip to content

Commit

Permalink
Fixed proj
Browse files Browse the repository at this point in the history
  • Loading branch information
Aydan Pirani committed Jul 17, 2024
1 parent dd1684d commit 2898d76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/services/attendee/attendee-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ attendeeRouter.get(
const attendeeData = AttendeeFilterValidator.parse(req.body);
const attendees = await Database.ATTENDEE.find(
attendeeData.in,
attendeeData.out.map((x) => {
x: 1;
})
attendeeData.out
);

return res.status(StatusCodes.OK).json(attendees);
Expand Down
2 changes: 1 addition & 1 deletion src/services/attendee/attendee-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ export const PartialAttendeeValidator = AttendeeValidator.partial();

export const AttendeeFilterValidator = z.object({
in: PartialAttendeeValidator,
out: PartialAttendeeValidator.keyof().array(),
out: z.map(PartialAttendeeValidator.keyof(), z.number().min(0).max(1))

Check failure on line 98 in src/services/attendee/attendee-schema.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `,`
});

0 comments on commit 2898d76

Please sign in to comment.