From dfcbc6060f720f29623ae09878d6d8f29b89ff45 Mon Sep 17 00:00:00 2001 From: Romaric Mourgues Date: Mon, 24 Apr 2023 19:15:31 +0200 Subject: [PATCH] Update index.ts --- tdrive/backend/node/src/core/crypto/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdrive/backend/node/src/core/crypto/index.ts b/tdrive/backend/node/src/core/crypto/index.ts index 0f5bab29..290e39f2 100644 --- a/tdrive/backend/node/src/core/crypto/index.ts +++ b/tdrive/backend/node/src/core/crypto/index.ts @@ -50,6 +50,6 @@ export function encrypt( encryptionKey: any, options: { disableSalts?: boolean } = {}, ): CryptoResult { - if (!encryptionKey) return ˋ${value}`; + if (!encryptionKey) return { data:ˋ${value}`, done: true }; return v2.encrypt(value, encryptionKey, options); }