From 471b4318b65c7f1902f973aaf23a407d7fb3105d Mon Sep 17 00:00:00 2001 From: Mariano Rodriguez Date: Mon, 13 Jan 2020 10:36:34 +0100 Subject: [PATCH 1/2] [fix] - thumbnails were not showing on tue UI --- api/server/src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server/src/api.ts b/api/server/src/api.ts index 6ba4829d..066ae2f2 100644 --- a/api/server/src/api.ts +++ b/api/server/src/api.ts @@ -417,7 +417,7 @@ export class ApiServer { // if its an .eml, we have to change the binder extension to match the generated PDF // in Email Extractor and get the thumbnails of that PDF file if (binder.input.endsWith('.eml')) { - binder.input = binder.input.replace('.eml', '-tmp.pdf'); + binder.input = binder.input.replace('.eml', '.pdf'); } const fileType: { ext: string; mime: string } = filetype(fs.readFileSync(binder.input)); From 619f8e35cdf448e9c382ce1de5a13ef43e0dedf2 Mon Sep 17 00:00:00 2001 From: Mariano Rodriguez Date: Mon, 13 Jan 2020 10:54:59 +0100 Subject: [PATCH 2/2] [fix/thumbs] - line rollback --- api/server/src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server/src/api.ts b/api/server/src/api.ts index 066ae2f2..6ba4829d 100644 --- a/api/server/src/api.ts +++ b/api/server/src/api.ts @@ -417,7 +417,7 @@ export class ApiServer { // if its an .eml, we have to change the binder extension to match the generated PDF // in Email Extractor and get the thumbnails of that PDF file if (binder.input.endsWith('.eml')) { - binder.input = binder.input.replace('.eml', '.pdf'); + binder.input = binder.input.replace('.eml', '-tmp.pdf'); } const fileType: { ext: string; mime: string } = filetype(fs.readFileSync(binder.input));