Skip to content

Commit

Permalink
change to getAllRequestsByID for fetching a list of chapter's requests
Browse files Browse the repository at this point in the history
  • Loading branch information
kygchng committed Nov 17, 2024
1 parent d98fa35 commit 91ef52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/services/birthdayRequest.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const removeSensitiveDataQuery = [
];

const getAllRequestsByID = async (id: string) => {
const requestsList = await BirthdayRequest.findOne({ id })
const requestsList = await BirthdayRequest.find({ chapterId: id })
.select(removeSensitiveDataQuery)
.exec();
return requestsList;
Expand Down

0 comments on commit 91ef52e

Please sign in to comment.