cityssm/parking-ticket-system

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

Summary

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