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:
parent
675da0836f
commit
bea4f46c9a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user