Skip to content

Commit

Permalink
fix(routes): update route typo for report submission
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Dec 8, 2024
1 parent 6075b2d commit b4baa24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/v3/controllers/users_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ export const retrieveUserBackup = async (req: Request, res: Response) => {

if (personMinimal) {
const minimalPersons = cong.persons.map((record) => {
const includeTimeAway = cong.settings.time_away_public.value;
const includeTimeAway = cong.settings.time_away_public?.value ?? false;

const personData = record.person_data as StandardRecord;

Expand Down
2 changes: 1 addition & 1 deletion src/v3/routes/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ router.get('/:id/applications', getAuxiliaryApplications);
router.post('/:id/applications', body('application').isObject().notEmpty(), submitAuxiliaryApplication);

// post field service report
router.post('/:idfield-service-reports', body('report').isObject().notEmpty(), postUserReport);
router.post('/:id/field-service-reports', body('report').isObject().notEmpty(), postUserReport);

// retrieve congregation backup
router.get('/:id/backup', retrieveUserBackup);
Expand Down

0 comments on commit b4baa24

Please sign in to comment.