cityssm/parking-ticket-system

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import createParkingTicketStatus from '../../database/parkingDB/createParkingTicketStatus.js';
export default function handler(request, response) {
    const result = createParkingTicketStatus(request.body, request.session.user, request.body.resolveTicket === '1');
    response.json(result);
}