cityssm/parking-ticket-system

View on GitHub
handlers/tickets-post/doCreateConvictionBatch.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { Request, Response } from 'express'

import createConvictionBatch from '../../database/parkingDB/createConvictionBatch.js'

export default function handler(request: Request, response: Response): void {
  const batchResult = createConvictionBatch(request.session.user as PTSUser)

  response.json(batchResult)
}