cityssm/faster-web-helper

View on GitHub
modules/purchaseOrderApprovals/handlers/post/doCreatePurchaseOrder.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function handler has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

  if (user.approvalMax <= 0) {

    There are no issues that match your filters.

    Category
    Status