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

fix resolveByDTAddress

This commit is contained in:
Alex Coseru 2020-06-24 16:00:11 +03:00 committed by GitHub
parent 7d079a07cd
commit 5b7bc2c7e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,14 +203,14 @@ export class Assets extends Instantiable {
dtAddress: string, dtAddress: string,
offset?: number, offset?: number,
page?: number, page?: number,
sort?: number, sort?: number
query?: number
): Promise<DDO[]> { ): Promise<DDO[]> {
const query = { "query": {"dtAddress": [dtAddress]}}
const searchQuery = { const searchQuery = {
offset: offset || 100, offset: offset || 100,
page: page || 1, page: page || 1,
query: { query: {
value: query || 1 value: query
}, },
sort: { sort: {
value: sort || 1 value: sort || 1