cityssm/parking-ticket-system

View on GitHub
handlers/plates-post/doGetLookupBatch.ts

Summary

Maintainability
A
1 hr
Test Coverage
import type { Request, Response } from 'express'

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

export default function handler(request: Request, response: Response): void {
  const batch = getLookupBatch(
    Number.parseInt(request.body.batchId as string, 10)
  )

  response.json(batch)
}