From ef8b843d817101ee1edf8b55f289c49ed6ac9e02 Mon Sep 17 00:00:00 2001 From: dongpd Date: Thu, 13 Feb 2020 09:33:22 +0700 Subject: [PATCH] check other with absolute --- api/controllers/ApiController.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/controllers/ApiController.js b/api/controllers/ApiController.js index f24682e..daccc04 100644 --- a/api/controllers/ApiController.js +++ b/api/controllers/ApiController.js @@ -101,6 +101,8 @@ function isSavePlateOther(type, timestamp, plate) { return false; } else if (levenshtein(plate, currentInOther[i].plate) < 2) { return false; + } else if (levenshtein(plate, currentIn[i].plate) < 3) { + return false; } } } @@ -112,6 +114,8 @@ function isSavePlateOther(type, timestamp, plate) { return false; } else if (levenshtein(plate, currentOutOther[i].plate) < 2) { return false; + } else if (levenshtein(plate, currentOut[i].plate) < 3) { + return false; } } }