🔧 Fixing the ebook-meta path

This commit is contained in:
2021-09-07 08:47:13 -07:00
parent c7d431343d
commit 36d1c4fe33
2 changed files with 1 additions and 8 deletions

View File

@@ -43,10 +43,8 @@ export const calculateLevenshteinDistance = async (
imagePath1: string,
imagePath2: string
): Promise<Record<string, unknown>> => {
console.log("AGANTUK", imagePath1)
const hash1 = await imghash.hash(imagePath1);
const hash2 = await imghash.hash(imagePath2);
console.log("HASHISH", hash1)
if (!isNull(hash1) && !isNull(hash2)) {
return new Promise((resolve, reject) => {
resolve({ levenshteinDistance: leven(hash1, hash2) });