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:
parent
2bf04170d7
commit
7ef5c6b7b0
@ -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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user