handlers/tickets-ontario-get/convict.ts
import type { Request, Response } from 'express'
import getConvictionBatch from '../../database/parkingDB/getConvictionBatch.js'
import { getParkingTicketsAvailableForMTOConvictionBatch } from '../../database/parkingDB-ontario.js'
export default function handler(_request: Request, response: Response): void {
const tickets = getParkingTicketsAvailableForMTOConvictionBatch()
const batch = getConvictionBatch(-1)
response.render('mto-ticketConvict', {
headTitle: 'Convict Parking Tickets',
tickets,
batch
})
}