Skip to content

Commit

Permalink
fix(routes): update route typo for report submission
Browse files Browse the repository at this point in the history
rhahao committed Dec 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6075b2d commit b4baa24
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
@@ -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;

2 changes: 1 addition & 1 deletion src/v3/routes/users.ts
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit b4baa24

Please sign in to comment.