From 15a5980d65adbe5acdc08487fee099bf800aea1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kurczewski?= Date: Fri, 6 Sep 2024 13:19:04 +0200 Subject: [PATCH] [CP-3086] Fixed chunks joining for backup files (#2051) --- .../feature/src/lib/file-manager/file-manager.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/device/feature/src/lib/file-manager/file-manager.service.ts b/libs/device/feature/src/lib/file-manager/file-manager.service.ts index e5bdd10852..65e2dd0361 100644 --- a/libs/device/feature/src/lib/file-manager/file-manager.service.ts +++ b/libs/device/feature/src/lib/file-manager/file-manager.service.ts @@ -43,7 +43,7 @@ export class FileManager { try { const file = this.serviceBridge.fileTransfer.getFileByTransferId(transferId) - writeFileSync(filePath, file.chunks.join(), "base64") + writeFileSync(filePath, file.chunks.join(""), "base64") return Result.success(undefined) } catch (e) { @@ -130,8 +130,8 @@ export class FileManager { this.serviceBridge.fileTransfer.getFileByTransferId(transferId) const featureData = password - ? AES.encrypt(transfer.chunks.join(), password).toString() - : transfer.chunks.join() + ? AES.encrypt(transfer.chunks.join(""), password).toString() + : transfer.chunks.join("") return { ...acc, [feature]: featureData } },