cityssm/parking-ticket-system

View on GitHub
handlers/tickets-post/doResolveTicket.js

Summary

Maintainability
A
1 hr
Test Coverage
A
100%
import resolveParkingTicket from '../../database/parkingDB/resolveParkingTicket.js';
export default function handler(request, response) {
    const result = resolveParkingTicket(Number.parseInt(request.body.ticketId, 10), request.session.user);
    response.json(result);
}