mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fix getOwnerAssets response
* make it return the full `QueryResult` to keep it consistent and have pagination work properly
This commit is contained in:
parent
119095470d
commit
fb20a76e45
@ -255,7 +255,7 @@ export class MetadataStore {
|
||||
return result
|
||||
}
|
||||
|
||||
public async getOwnerAssets(owner: string): Promise<DDO[]> {
|
||||
public async getOwnerAssets(owner: string): Promise<QueryResult> {
|
||||
const q = {
|
||||
offset: 100,
|
||||
page: 1,
|
||||
@ -266,7 +266,9 @@ export class MetadataStore {
|
||||
value: 1
|
||||
}
|
||||
} as SearchQuery
|
||||
return (await this.queryMetadata(q)).results
|
||||
|
||||
const result = await this.queryMetadata(q)
|
||||
return result
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user