Skip to content

Commit

Permalink
fix: fetch dob from the dl image
Browse files Browse the repository at this point in the history
  • Loading branch information
hkmangla committed Feb 13, 2025
1 parent 0763910 commit a8cd0a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ extractDLImage cfg req = do
resp.result <&> \result -> do
ExtractedDL
{ dlNumber = result.extraction_output.id_number,
nameOnCard = result.extraction_output.name_on_card
nameOnCard = result.extraction_output.name_on_card,
dateOfBirth = result.extraction_output.date_of_birth
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ newtype ExtractDLImageResp = ExtractDLImageResp

data ExtractedDL = ExtractedDL
{ dlNumber :: Maybe Text,
nameOnCard :: Maybe Text
nameOnCard :: Maybe Text,
dateOfBirth :: Maybe Text
}
deriving stock (Show, Generic)

Expand Down

0 comments on commit a8cd0a8

Please sign in to comment.