mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
adapt transformPublishFormToDdo
This commit is contained in:
parent
06dca21d47
commit
b64e4ff5dc
@ -85,13 +85,18 @@ export async function transformPublishFormToDdo(
|
|||||||
const filesEncrypted =
|
const filesEncrypted =
|
||||||
files?.length &&
|
files?.length &&
|
||||||
files[0].valid &&
|
files[0].valid &&
|
||||||
(await getEncryptedFileUrls(filesTransformed, providerUrl, did, accountId))
|
(await getEncryptedFileUrls(
|
||||||
|
filesTransformed,
|
||||||
|
providerUrl.url,
|
||||||
|
did,
|
||||||
|
accountId
|
||||||
|
))
|
||||||
|
|
||||||
const newService: Service = {
|
const newService: Service = {
|
||||||
type: access,
|
type: access,
|
||||||
files: filesEncrypted || '',
|
files: filesEncrypted || '',
|
||||||
datatokenAddress,
|
datatokenAddress,
|
||||||
serviceEndpoint: providerUrl,
|
serviceEndpoint: providerUrl.url,
|
||||||
timeout: mapTimeoutStringToSeconds(timeout),
|
timeout: mapTimeoutStringToSeconds(timeout),
|
||||||
...(access === 'compute' && {
|
...(access === 'compute' && {
|
||||||
compute: {
|
compute: {
|
||||||
|
Loading…
Reference in New Issue
Block a user