Skip to content

Commit

Permalink
Merge pull request #19 from oraichain/staging
Browse files Browse the repository at this point in the history
Fix error load pair from contract
  • Loading branch information
trungbach authored Sep 28, 2023
2 parents 713b38b + 9382b76 commit 206344a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/oraidex-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-server",
"version": "1.0.10",
"version": "1.0.11",
"main": "dist/index.js",
"bin": "dist/index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/oraidex-server/package.staging.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraidex-server-staging",
"version": "1.0.2",
"version": "1.0.3",
"main": "dist/index.js",
"bin": "dist/index.js",
"license": "MIT",
Expand Down
Binary file added packages/oraidex-sync/oraidex-only-sync-data
Binary file not shown.
Binary file added packages/oraidex-sync/oraidex-only-sync-data.wal
Binary file not shown.
3 changes: 1 addition & 2 deletions packages/oraidex-sync/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ class OraiDexSync {
try {
console.time("timer-updateLatestPairInfos");
const pairInfos = await getAllPairInfos();

const allPools = await this.duckDb.getPools();
if (allPools.length > 0) return;
if (allPools.length > 0 && pairInfos.length === allPools.length) return;
await this.duckDb.insertPairInfos(
pairInfos.map((pair, index) => {
const symbols = getSymbolFromAsset(pair.asset_infos);
Expand Down

0 comments on commit 206344a

Please sign in to comment.