cityssm/parking-ticket-system

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

Summary

Maintainability
A
0 mins
Test Coverage
F
33%
import unlockConvictionBatch from '../../database/parkingDB/unlockConvictionBatch.js';
export default function handler(request, response) {
    const batchId = Number.parseInt(request.body.batchId, 10);
    const success = unlockConvictionBatch(batchId, request.session.user);
    response.json({ success });
}