cityssm/parking-ticket-system

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

Summary

Maintainability
A
55 mins
Test Coverage
F
50%
import getParkingTicketStatuses from '../../database/parkingDB/getParkingTicketStatuses.js';
export default function handler(request, response) {
    response.json(getParkingTicketStatuses(Number.parseInt(request.body.ticketId, 10), request.session.user));
}