We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9cbfcf commit 9bc34eeCopy full SHA for 9bc34ee
backend/app/services/implementations/match_service.py
@@ -345,6 +345,9 @@ async def cancel_match_by_participant(
345
if acting_participant_id and match.participant_id != acting_participant_id:
346
raise HTTPException(status_code=403, detail="Cannot modify another participant's match")
347
348
+ self._set_match_status(match, "cancelled_by_participant")
349
+
350
+ # TODO: send particpant an email saying that the match has been cancelled
351
# Soft-delete the match when cancelled (cleans up time blocks and sets deleted_at)
352
self._delete_match(match)
353
0 commit comments