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'
|
new Date(Date.now()).toISOString().split('.')[0] + 'Z'
|
||||||
const services: Service[] = []
|
const services: Service[] = []
|
||||||
const price = '1'
|
const price = '1'
|
||||||
|
asset.main.dateCreated = asset.main.datePublished = publishedDate
|
||||||
|
|
||||||
switch (serviceType) {
|
switch (serviceType) {
|
||||||
case 'access': {
|
case 'access': {
|
||||||
@ -118,9 +119,9 @@ function usePublish(): UsePublish {
|
|||||||
providerUri
|
providerUri
|
||||||
)
|
)
|
||||||
.next(setStep)
|
.next(setStep)
|
||||||
|
|
||||||
await ocean.assets.publishDdo(ddo, account.getId())
|
|
||||||
Logger.log('ddo created', ddo)
|
Logger.log('ddo created', ddo)
|
||||||
|
await ocean.assets.publishDdo(ddo, account.getId())
|
||||||
|
Logger.log('ddo published')
|
||||||
await sleep(20000)
|
await sleep(20000)
|
||||||
setStep(7)
|
setStep(7)
|
||||||
return ddo
|
return ddo
|
||||||
|
Loading…
Reference in New Issue
Block a user