cityssm/parking-ticket-system

View on GitHub
handlers/tickets-ontario-get/convict.ts

Summary

Maintainability
A
0 mins
Test Coverage
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
  })
}