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

save priceType to DDO

This commit is contained in:
Matthias Kretschmann 2020-08-05 14:36:26 +02:00
parent 086631d108
commit 541e495d71
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 7 additions and 3 deletions

View File

@ -8,6 +8,7 @@ import {
export interface AdditionalInformationMarket extends AdditionalInformation {
links?: File[]
termsAndConditions: boolean
priceType: string
}
export interface MetadataMarket extends Metadata {

View File

@ -16,7 +16,8 @@ export function transformPublishFormToMetadata(
tags,
links,
termsAndConditions,
files
files,
price
} = data
const metadata: MetadataMarket = {
@ -37,7 +38,8 @@ export function transformPublishFormToMetadata(
// links: {
// url: links
// },
termsAndConditions
termsAndConditions,
priceType: price.type
},
curation: AssetModel.curation
}

View File

@ -18,7 +18,8 @@ const AssetModel: MetadataMarket = {
links: undefined,
// custom items
termsAndConditions: false
termsAndConditions: false,
priceType: undefined
},
curation: {
rating: 0,