mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
fix page number in all search queries
This commit is contained in:
parent
c80c201a61
commit
ae4fe65b0e
|
@ -65,7 +65,7 @@ describe("Search Asset", () => {
|
|||
|
||||
it("should be able to do a query to get a list of DDOs", async () => {
|
||||
const {results: ddos} = await ocean.assets.query({
|
||||
page: 0,
|
||||
page: 1,
|
||||
offset: 1,
|
||||
query: {
|
||||
text: [`Test2${testHash}`],
|
||||
|
|
|
@ -276,7 +276,7 @@ export class OceanAssets extends Instantiable {
|
|||
public async search(text: string) {
|
||||
return this.ocean.aquarius.queryMetadataByText({
|
||||
text,
|
||||
page: 0,
|
||||
page: 1,
|
||||
offset: 100,
|
||||
query: {
|
||||
value: 1,
|
||||
|
|
|
@ -18,7 +18,7 @@ describe("Aquarius", () => {
|
|||
|
||||
const query = {
|
||||
offset: 100,
|
||||
page: 0,
|
||||
page: 1,
|
||||
query: {
|
||||
value: 1,
|
||||
},
|
||||
|
@ -56,7 +56,7 @@ describe("Aquarius", () => {
|
|||
|
||||
const query = {
|
||||
offset: 100,
|
||||
page: 0,
|
||||
page: 1,
|
||||
query: {
|
||||
value: 1,
|
||||
},
|
||||
|
|
|
@ -49,7 +49,7 @@ describe("Ocean", () => {
|
|||
it("should search for assets", async () => {
|
||||
const query = {
|
||||
offset: 100,
|
||||
page: 0,
|
||||
page: 1,
|
||||
query: {
|
||||
value: 1,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user