Skip to content

Commit

Permalink
Fix broken migration (#322)
Browse files Browse the repository at this point in the history
## Description of change

[Link to relevant
ticket](https://dsdmoj.atlassian.net/browse/CRM457-2216)
  • Loading branch information
patrick-laa authored Nov 8, 2024
1 parent 3b1adc8 commit cfa2aaa
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ def up
.sort_by { DateTime.parse(_1['created_at']) }
last_event = ass_and_unass_events.last

next unless last_event

if last_event['event_type'] == 'assignment'
assigned_user_id = last_event['primary_user_id']
end
Expand Down

0 comments on commit cfa2aaa

Please sign in to comment.