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(),
|
||||
decodeURI(JSON.stringify(args))
|
||||
)
|
||||
return await response.text()
|
||||
return (await response.json()).encryptedDocument
|
||||
} catch (e) {
|
||||
this.logger.error(e)
|
||||
throw new Error('HTTP request failed')
|
||||
|
Loading…
x
Reference in New Issue
Block a user