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)