Skip to content

Commit

Permalink
fixed events format (#187)
Browse files Browse the repository at this point in the history
* fixed events format

* Fixed events format
  • Loading branch information
AydanPirani committed Feb 1, 2024
1 parent 6e82f27 commit e4dd24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/event/event-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ eventsRouter.get("/", weakJwtVerification, async (_: Request, res: Response) =>
// filter events to only show public data
const filteredPublicEvents: FilteredEventView[] = publicEvents.map(createFilteredEventView);

return res.status(StatusCode.SuccessOK).send(filteredPublicEvents);
return res.status(StatusCode.SuccessOK).send({ events: filteredPublicEvents });
});

/**
Expand Down

0 comments on commit e4dd24f

Please sign in to comment.