Skip to content

Cancel a Match Without Starting Another Match

Elliot edited this page Feb 4, 2019 · 2 revisions
  1. Find the match that is currently active m = ClientOpportunityMatch.find 123
  2. Mark the current decision as being canceled for reason Other: m.current_decision.update(administrative_cancel_reason_id: 1, administrative_cancel_reason_other_explanation: 'Administratively Canceled; accidentally started.', status: :canceled)
  3. Mark the match as closed: m.update(closed: true, active: false, closed_reason: 'canceled')
  4. Make sure the client is available for matching m.client.make_available_in(match_route: m.match_route)
  5. If you need to re-enable a canceled match, you can do so like this