Skip to content

Commit 5828bca

Browse files
fix: treat upload of deleted vaccination as conflicting discarded_at
This fixes the bug where once a vaccination record is discarded, it can never be imported again. Jira-Issue: MAV-1346
1 parent e0cee38 commit 5828bca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/models/immunisation_import_row.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ def to_vaccination_record
123123
delivery_method: delivery_method_value,
124124
delivery_site: delivery_site_value,
125125
notes: notes&.to_s,
126-
vaccine_id: vaccine&.id
126+
vaccine_id: vaccine&.id,
127+
discarded_at: nil
127128
}
128129

129130
vaccination_record =

0 commit comments

Comments
 (0)