cityssm/parking-ticket-system

View on GitHub
handlers/tickets-get/reconcile.js

Summary

Maintainability
A
0 mins
Test Coverage
F
27%
import getOwnershipReconciliationRecords from '../../database/parkingDB/getOwnershipReconciliationRecords.js';
import getUnacknowledgedLookupErrorLog from '../../database/parkingDB/getUnacknowledgedLookupErrorLog.js';
export default async function handler(_request, response) {
    const reconciliationRecords = await getOwnershipReconciliationRecords();
    const lookupErrors = getUnacknowledgedLookupErrorLog(-1, -1);
    response.render('ticket-reconcile', {
        headTitle: 'Ownership Reconciliation',
        records: reconciliationRecords,
        errorLog: lookupErrors
    });
}