cityssm/parking-ticket-system

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

Summary

Maintainability
A
0 mins
Test Coverage
F
27%
import getConvictionBatch from '../../database/parkingDB/getConvictionBatch.js';
import { getParkingTicketsAvailableForMTOConvictionBatch } from '../../database/parkingDB-ontario.js';
export default function handler(_request, response) {
    const tickets = getParkingTicketsAvailableForMTOConvictionBatch();
    const batch = getConvictionBatch(-1);
    response.render('mto-ticketConvict', {
        headTitle: 'Convict Parking Tickets',
        tickets,
        batch
    });
}