Skip to content

Commit

Permalink
fix: should check the product to see if the check is applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
pgmemk committed Jun 2, 2018
1 parent 8a8f577 commit 09febab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/in-house-bot/plugins/facial-recognition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ export const createPlugin: CreatePlugin<FacialRecognitionAPI> = (components, plu
onFormsCollected: async ({ req, user, application }) => {
if (req.skipChecks) return
if (!application) return
let productId = application.requestFor
let { products } = conf
if (!products || !products[productId])
return
debugger
const result = await facialRecognition.getSelfieAndPhotoID(application)
if (!result) return
Expand Down

0 comments on commit 09febab

Please sign in to comment.