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:
parent
e3d66417a4
commit
7d079a07cd
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user