1
0
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:
Matthias Kretschmann 2020-09-22 14:00:37 +02:00
parent 119095470d
commit fb20a76e45
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -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
}
/**