mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
Merge pull request #203 from oceanprotocol/fix/search-page
Fix page numbers in search queries
This commit is contained in:
commit
f35878be73
@ -21,13 +21,12 @@ before_script:
|
|||||||
- ganache-cli --port 18545 > ganache-cli.log &
|
- ganache-cli --port 18545 > ganache-cli.log &
|
||||||
- git clone https://github.com/oceanprotocol/barge
|
- git clone https://github.com/oceanprotocol/barge
|
||||||
- cd barge
|
- cd barge
|
||||||
- export AQUARIUS_VERSION=v0.2.1
|
- export AQUARIUS_VERSION=v0.2.2
|
||||||
- export BRIZO_VERSION=v0.3.4
|
- export BRIZO_VERSION=v0.3.5
|
||||||
- export KEEPER_VERSION=v0.9.0
|
- export KEEPER_VERSION=v0.9.1
|
||||||
- export KEEPER_OWNER_ROLE_ADDRESS="0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"
|
- export KEEPER_OWNER_ROLE_ADDRESS="0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"
|
||||||
- bash -x start_ocean.sh --latest --no-pleuston --local-spree-node 2>&1 > start_ocean.log &
|
- bash -x start_ocean.sh --latest --no-pleuston --local-spree-node 2>&1 > start_ocean.log &
|
||||||
- cd ..
|
- cd ..
|
||||||
- ./scripts/unlock-spree-accounts.sh 2>&1 > /dev/null &
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- export ETH_PORT=18545; npm run test:cover
|
- export ETH_PORT=18545; npm run test:cover
|
||||||
|
@ -65,7 +65,7 @@ describe("Search Asset", () => {
|
|||||||
|
|
||||||
it("should be able to do a query to get a list of DDOs", async () => {
|
it("should be able to do a query to get a list of DDOs", async () => {
|
||||||
const {results: ddos} = await ocean.assets.query({
|
const {results: ddos} = await ocean.assets.query({
|
||||||
page: 0,
|
page: 1,
|
||||||
offset: 1,
|
offset: 1,
|
||||||
query: {
|
query: {
|
||||||
text: [`Test2${testHash}`],
|
text: [`Test2${testHash}`],
|
||||||
|
@ -276,7 +276,7 @@ export class OceanAssets extends Instantiable {
|
|||||||
public async search(text: string) {
|
public async search(text: string) {
|
||||||
return this.ocean.aquarius.queryMetadataByText({
|
return this.ocean.aquarius.queryMetadataByText({
|
||||||
text,
|
text,
|
||||||
page: 0,
|
page: 1,
|
||||||
offset: 100,
|
offset: 100,
|
||||||
query: {
|
query: {
|
||||||
value: 1,
|
value: 1,
|
||||||
|
@ -18,7 +18,7 @@ describe("Aquarius", () => {
|
|||||||
|
|
||||||
const query = {
|
const query = {
|
||||||
offset: 100,
|
offset: 100,
|
||||||
page: 0,
|
page: 1,
|
||||||
query: {
|
query: {
|
||||||
value: 1,
|
value: 1,
|
||||||
},
|
},
|
||||||
@ -56,7 +56,7 @@ describe("Aquarius", () => {
|
|||||||
|
|
||||||
const query = {
|
const query = {
|
||||||
offset: 100,
|
offset: 100,
|
||||||
page: 0,
|
page: 1,
|
||||||
query: {
|
query: {
|
||||||
value: 1,
|
value: 1,
|
||||||
},
|
},
|
||||||
|
@ -49,7 +49,7 @@ describe("Ocean", () => {
|
|||||||
it("should search for assets", async () => {
|
it("should search for assets", async () => {
|
||||||
const query = {
|
const query = {
|
||||||
offset: 100,
|
offset: 100,
|
||||||
page: 0,
|
page: 1,
|
||||||
query: {
|
query: {
|
||||||
value: 1,
|
value: 1,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user