cityssm/parking-ticket-system

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

Summary

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