Skip to content

Commit

Permalink
fix getChapter in birthdayRequestController
Browse files Browse the repository at this point in the history
  • Loading branch information
kygchng committed Jan 21, 2025
1 parent 970b830 commit d53053f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/controllers/birthdayRequest.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ const createRequest = async (
});

// Get chapter email
const chapter = await getChapterById(chapterId);
const chapter: IUser | null = await getUserById(chapterId);
if (!chapter) {
next(ApiError.notFound(`Chapter does not exist`));
return;
Expand Down Expand Up @@ -416,6 +416,6 @@ export {
updateRequestStatus,
deleteRequest,
createRequest,
getTotalBoxesDelivered
getTotalBoxesDelivered,
getMonthlyOverview,
};

0 comments on commit d53053f

Please sign in to comment.