1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

compute options dataflow tweak

This commit is contained in:
Matthias Kretschmann 2021-11-29 16:55:15 +00:00
parent 9d9a33393f
commit 318bc44f43
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -2,10 +2,7 @@ import { mapTimeoutStringToSeconds } from '@utils/ddo'
import { getEncryptedFileUrls } from '@utils/provider'
import { sha256 } from 'js-sha256'
import slugify from 'slugify'
import {
algorithmContainerPresets,
computeEnvironmentDefaults
} from './_constants'
import { algorithmContainerPresets } from './_constants'
import { FormPublishData } from './_types'
export function getFieldContent(
@ -132,7 +129,7 @@ export async function transformPublishFormToDdo(
serviceEndpoint: providerUrl.url,
timeout: mapTimeoutStringToSeconds(timeout),
...(access === 'compute' && {
compute: computeEnvironmentDefaults
compute: values.services[0].computeOptions
})
}