fix: index was ignore

This commit is contained in:
Methapon Metanipat 2024-09-02 13:22:33 +07:00
parent 6dcbfea30a
commit 64f00106b9

View file

@ -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);
}