1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Fix storing encrypted files in new ddo.

This commit is contained in:
ssallam 2020-07-13 10:48:25 +02:00
parent 2bf04170d7
commit 7ef5c6b7b0

View File

@ -60,7 +60,7 @@ export class Provider extends Instantiable {
this.getEncryptEndpoint(), this.getEncryptEndpoint(),
decodeURI(JSON.stringify(args)) decodeURI(JSON.stringify(args))
) )
return await response.text() return (await response.json()).encryptedDocument
} catch (e) { } catch (e) {
this.logger.error(e) this.logger.error(e)
throw new Error('HTTP request failed') throw new Error('HTTP request failed')