more control

This commit is contained in:
Torsten Schulz (notebook)
2024-08-17 13:05:03 +02:00
parent 31ca0979ce
commit 255fb97dd3
4 changed files with 24 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ const getClubMembers = async(req, res) => {
const getWaitingApprovals = async(req, res) => {
try {
const { clubid: clubId } = req.body;
const { clubid: clubId } = req.params;
const { hashedId: userToken} = req.headers;
const waitingApprovals = MemberService.getApprovalRequests(userToken, clubId);
res.status(200).json(waitingApprovals);