adapt transformPublishFormToDdo

This commit is contained in:
Matthias Kretschmann 2021-11-25 14:20:00 +00:00
parent 06dca21d47
commit b64e4ff5dc
Signed by: m
GPG Key ID: 606EEEF3C479A91F
1 changed files with 7 additions and 2 deletions

View File

@ -85,13 +85,18 @@ export async function transformPublishFormToDdo(
const filesEncrypted =
files?.length &&
files[0].valid &&
(await getEncryptedFileUrls(filesTransformed, providerUrl, did, accountId))
(await getEncryptedFileUrls(
filesTransformed,
providerUrl.url,
did,
accountId
))
const newService: Service = {
type: access,
files: filesEncrypted || '',
datatokenAddress,
serviceEndpoint: providerUrl,
serviceEndpoint: providerUrl.url,
timeout: mapTimeoutStringToSeconds(timeout),
...(access === 'compute' && {
compute: {