File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ def index
10
10
all_patient_sessions =
11
11
@session
12
12
. patient_sessions
13
+ . active
13
14
. strict_loading
14
15
. includes (
15
16
:campaign ,
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ def update
22
22
case current_step
23
23
when :confirm
24
24
@session . draft = false
25
+ @session . patient_sessions . update_all ( active : true )
26
+
25
27
if @session . send_consent_at . today?
26
28
ConsentRequestsSessionBatchJob . perform_later ( @session )
27
29
end
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ def index
17
17
all_patient_sessions =
18
18
@session
19
19
. patient_sessions
20
+ . active
20
21
. strict_loading
21
22
. includes (
22
23
:campaign ,
@@ -74,7 +75,8 @@ def set_patient
74
75
end
75
76
76
77
def set_patient_session
77
- @patient_session = @patient . patient_sessions . find_by ( session : @session )
78
+ @patient_session =
79
+ @patient . patient_sessions . active . find_by ( session : @session )
78
80
end
79
81
80
82
def set_triage
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ def index
19
19
all_patient_sessions =
20
20
@session
21
21
. patient_sessions
22
+ . active
22
23
. strict_loading
23
24
. includes (
24
25
:campaign ,
@@ -151,7 +152,8 @@ def set_draft_vaccination_record
151
152
end
152
153
153
154
def set_patient_session
154
- @patient_session = @patient . patient_sessions . find_by ( session : @session )
155
+ @patient_session =
156
+ @patient . patient_sessions . active . find_by ( session : @session )
155
157
end
156
158
157
159
def set_todays_batch
You can’t perform that action at this time.
0 commit comments