Skip to content

Commit

Permalink
BAVL-549 first set of changes towards removing legacy BVLS specific c…
Browse files Browse the repository at this point in the history
…ode from DPS, this is now handled via a redirect to the prisoner profile add appointment. (#2817)

BAVL-549 first set of changes towards removing legacy BVLS specific code from DPS, this is now handled via a redirect to the prisoer profile add appointment.
  • Loading branch information
matt-crowson-moj authored Jan 10, 2025
1 parent 67a59ae commit ea46e44
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 1,945 deletions.
6 changes: 0 additions & 6 deletions backend/api/whereaboutsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ export const whereaboutsApiFactory = (client) => {
`/attendances/offender/${offenderNo}/unacceptable-absences?fromDate=${fromDate}&toDate=${toDate}&page=${page}`
)

const getCourtLocations = (context) => get(context, '/court/courts')

const addVideoLinkBooking = (context, body) => post(context, '/court/video-link-bookings', body)

const getAttendanceChanges = (context, { fromDateTime, toDateTime }, agencyId) => {
const path =
`/attendances/changes?fromDateTime=${fromDateTime}&toDateTime=${toDateTime}` +
Expand Down Expand Up @@ -122,8 +118,6 @@ export const whereaboutsApiFactory = (client) => {
getAbsences,
getUnacceptableAbsences,
getUnacceptableAbsenceDetail,
getCourtLocations,
addVideoLinkBooking,
getAttendanceChanges,
getCellsWithCapacity,
moveToCell,
Expand Down
2 changes: 0 additions & 2 deletions backend/controllers/appointments/addAppointment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,6 @@ export const addAppointmentFactory = (
bookingId,
})

if (appointmentType === 'VLB') return res.redirect(`/offenders/${offenderNo}/prepost-appointments`)

await createAppointments({
locals: res.locals,
comments,
Expand Down
Loading

0 comments on commit ea46e44

Please sign in to comment.