From d59ea14355ae994605864d5d653fe7439ab400dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20Gr=C3=A5borg?= Date: Wed, 15 Apr 2020 16:38:00 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20move=20comment=20to=20better=20placeCo?= =?UTF-8?q?-authored-by:=20Adam=20N=C3=A4slund=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/data.js b/lib/data.js index 41c8e4b..82100d3 100644 --- a/lib/data.js +++ b/lib/data.js @@ -123,7 +123,7 @@ const write = (config, keyProvider, tokens) => async (connectionId, ...paths) => let encryptedData try { emitter.emit(ENCRYPT_START) - encryptedData = encryptor.encrypt('general') + encryptedData = encryptor.encrypt('general') // Only general serialization allowed for multiple recipients emitter.emit(ENCRYPT) } catch (error) { emitter.emit(ENCRYPT_ERROR, error) @@ -134,7 +134,7 @@ const write = (config, keyProvider, tokens) => async (connectionId, ...paths) => domain, area, data: encryptedData - }) // Only general serialization allowed for multiple recipients + }) } const token = await tokens.createWriteDataToken(connectionId, encryptedPaths)