Skip to content

Commit

Permalink
Merge branch 'development' into filteredPermissionsDataComp
Browse files Browse the repository at this point in the history
  • Loading branch information
jng34 authored Nov 28, 2024
2 parents 1819aad + c5bc4ee commit c91b2e6
Show file tree
Hide file tree
Showing 8 changed files with 419 additions and 325 deletions.
15 changes: 15 additions & 0 deletions backend/routers/recurringEvents.router.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ router.get('/', cors(), (req, res) => {
RecurringEvent
// .find(query.checkInReady === 'true' ? query : undefined)
.find()
// This will deselect the video conference link field
.select("-videoConferenceLink")
.populate('project')
.then(recurringEvents => {
return res.status(200).send(recurringEvents);
Expand All @@ -23,6 +25,19 @@ router.get('/', cors(), (req, res) => {
});
});

router.get("/internal", (req, res) => {
RecurringEvent
.find()
.populate('project')
.then(recurringEvents => {
return res.status(200).send(recurringEvents)
})
.catch(err => {
console.error(err)
return res.status(400);
})
} )

router.get('/:id', (req, res) => {
RecurringEvent
.findById(req.params.id)
Expand Down
7 changes: 4 additions & 3 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"homepage": "https://www.vrms.io",
"dependencies": {
"@babel/plugin-transform-react-jsx-self": "^7.10.4",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "^5.14.19",
"@mui/material": "^5.11.12",
"@mui/material": "^5.16.7",
"@mui/x-date-pickers": "^7.21.0",
"@vitejs/plugin-react": "^4.0.3",
"@vitejs/plugin-react-swc": "^3.3.2",
"classnames": "^2.2.6",
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/RecurringEventsApiService.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class RecurringEventsApiService {

async fetchRecurringEvents() {
try {
const res = await fetch(this.baseUrl, {
const res = await fetch(`${this.baseUrl}/internal`, {
headers: this.headers,
});
return await res.json();
Expand Down
Loading

0 comments on commit c91b2e6

Please sign in to comment.