Skip to content

Commit

Permalink
fix getOwnerAssets response
Browse files Browse the repository at this point in the history
* make it return the full `QueryResult` to keep it consistent and have pagination work properly
  • Loading branch information
kremalicious authored Sep 22, 2020
1 parent e06f96a commit 6447405
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/metadatastore/MetadataStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
}

/**
Expand Down

0 comments on commit 6447405

Please sign in to comment.