cityssm/parking-ticket-system

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

Summary

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