Skip to content

Commit 787e69f

Browse files
Reenable smart clinics (#21)
1 parent 26b37a9 commit 787e69f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/lib/generators/clinic-generator.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ const generateTimeSlots = (date, sessionTimes, clinicType) => {
4747
endDateTime: slotEndTime.toISOString(),
4848
duration: slotDurationMinutes,
4949
type: clinicType,
50-
capacity: 1,
50+
// capacity: 1,
5151
// Don't support smart clinics yet
52-
// capacity: clinicType === 'assessment' ? 1 : 2, // Assessment clinics don't double book
52+
capacity: clinicType === 'assessment' ? 1 : 2, // Assessment clinics don't double book
5353
bookedCount: 0,
5454
period: `${sessionTimes.startTime}-${sessionTimes.endTime}`
5555
});
@@ -126,9 +126,9 @@ const generateClinic = (date, location, breastScreeningUnit, sessionTimes) => {
126126
targetCapacity: {
127127
bookingPercent: clinicType === 'assessment' ? 100 : config.clinics.targetBookingPercent,
128128
attendancePercent: clinicType === 'assessment' ? 95 : config.clinics.targetAttendancePercent,
129-
totalSlots: slots.length,
129+
// totalSlots: slots.length,
130130
// not supporting Smart clinics yet
131-
// totalSlots: slots.length * (clinicType === 'assessment' ? 1 : 2)
131+
totalSlots: slots.length * (clinicType === 'assessment' ? 1 : 2)
132132
},
133133
notes: null,
134134
sessionTimes,

0 commit comments

Comments
 (0)