File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
backend/app/services/implementations Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments