diff --git a/Services/server/src/rabbitmq/handler.ts b/Services/server/src/rabbitmq/handler.ts index 82d4b6b..309f61a 100644 --- a/Services/server/src/rabbitmq/handler.ts +++ b/Services/server/src/rabbitmq/handler.ts @@ -154,7 +154,7 @@ async function handleNotFoundRecord( if (!errorKey.includes(key)) { try { - Buffer.from(buffer).toString("base64"); + base64 = Buffer.from(buffer).toString("base64"); } catch (e) { console.warn("[WARN] Cannot extract data from the file.", e); } @@ -217,7 +217,7 @@ async function handleFoundRecord( if (!errorKey.includes(key)) { try { - Buffer.from(buffer).toString("base64"); + base64 = Buffer.from(buffer).toString("base64"); } catch (e) { console.warn("[WARN] Cannot extract data from the file.", e); }