1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

minor fix in resolve by dtaddress

This commit is contained in:
Ahmed Ali 2020-06-24 13:23:50 +02:00
parent e3d66417a4
commit 7d079a07cd

View File

@ -205,7 +205,7 @@ export class Assets extends Instantiable {
page?: number,
sort?: number,
query?: number
): Promise<QueryResult> {
): Promise<DDO[]> {
const searchQuery = {
offset: offset || 100,
page: page || 1,
@ -217,7 +217,7 @@ export class Assets extends Instantiable {
},
text: dtAddress
} as SearchQuery
return this.ocean.aquarius.queryMetadata(searchQuery)
return (await this.ocean.aquarius.queryMetadata(searchQuery)).results
}
/**