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

posible fix (#715)

This commit is contained in:
mihaisc 2021-07-07 06:01:08 -07:00 committed by GitHub
parent 675da0836f
commit bea4f46c9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,7 @@ function usePublish(): UsePublish {
new Date(Date.now()).toISOString().split('.')[0] + 'Z'
const services: Service[] = []
const price = '1'
asset.main.dateCreated = asset.main.datePublished = publishedDate
switch (serviceType) {
case 'access': {
@ -118,9 +119,9 @@ function usePublish(): UsePublish {
providerUri
)
.next(setStep)
await ocean.assets.publishDdo(ddo, account.getId())
Logger.log('ddo created', ddo)
await ocean.assets.publishDdo(ddo, account.getId())
Logger.log('ddo published')
await sleep(20000)
setStep(7)
return ddo