Skip to content

Commit 8b3bc47

Browse files
committed
fix
1 parent d89938e commit 8b3bc47

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

backend/app/services/implementations/match_service.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ async def volunteer_accept_match(
476476
self.db.query(Match)
477477
.options(
478478
joinedload(Match.volunteer).joinedload(User.availability),
479+
joinedload(Match.participant),
479480
joinedload(Match.match_status),
480481
)
481482
.filter(Match.id == match_id, Match.deleted_at.is_(None))
@@ -518,6 +519,11 @@ async def volunteer_accept_match(
518519
# Transition status to "pending" so participant can see it
519520
self._set_match_status(match, "pending")
520521

522+
# Clear pending volunteer request flag since match is now visible to participant
523+
participant = match.participant
524+
if participant and participant.pending_volunteer_request:
525+
participant.pending_volunteer_request = False
526+
521527
self.db.flush()
522528
self.db.commit()
523529
self.db.refresh(match)

0 commit comments

Comments
 (0)