1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00
This commit is contained in:
alexcos20 2020-06-24 06:30:09 -07:00
parent a725c3aca3
commit 96d946690d

View File

@ -68,7 +68,7 @@ export class Assets extends Instantiable {
dtAddress?: string dtAddress?: string
): SubscribablePromise<CreateProgressStep, DDO> { ): SubscribablePromise<CreateProgressStep, DDO> {
this.logger.log('Creating asset') this.logger.log('Creating asset')
return new SubscribablePromise(async observer => { return new SubscribablePromise(async (observer) => {
if (services.length === 0) { if (services.length === 0) {
this.logger.log('You have no services. Are you sure about this?') this.logger.log('You have no services. Are you sure about this?')
} }
@ -147,7 +147,7 @@ export class Assets extends Instantiable {
) )
.reverse() .reverse()
// Adding index // Adding index
.map(_ => ({ .map((_) => ({
..._, ..._,
index: indexCount++ index: indexCount++
})) as Service[] })) as Service[]