cityssm/parking-ticket-system

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

Summary

Maintainability
A
2 hrs
Test Coverage
import type { Request, Response } from 'express'

import removeLicencePlateFromLookupBatch from '../../database/parkingDB/removeLicencePlateFromLookupBatch.js'
import type { LicencePlateLookupBatchEntry } from '../../types/recordTypes.js'

export default function handler(request: Request, response: Response): void {
  const result = removeLicencePlateFromLookupBatch(
    request.body as LicencePlateLookupBatchEntry,
    request.session.user as PTSUser
  )

  response.json(result)
}