Skip to content

Commit 64286eb

Browse files
committed
Destroy vaccinations records performed by the oranisation
In the dev reset endpoint, to capture vaccination records uploaded by other organisations.
1 parent 1bc08c9 commit 64286eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/controllers/dev_controller.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ def reset_organisation
6161
VaccinationRecord.where(batch: batches).destroy_all
6262
batches.destroy_all
6363

64+
VaccinationRecord.where(
65+
performed_ods_code: organisation.ods_code
66+
).destroy_all
67+
6468
UnscheduledSessionsFactory.new.call
6569
end
6670

0 commit comments

Comments
 (0)