Skip to content

Commit

Permalink
fix: rarible syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeroman committed Nov 28, 2023
1 parent b8792f3 commit de5ab9f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/jobs/rarible-sync/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,21 +169,21 @@ export const fetchOrdersByTimestamp = async (
if (orderTimestamp > timestamp) {
newTimestamp = orderTimestamp;
}
}

const orderTarget =
parsed!.params.side === "buy"
? parsed?.params.take.assetType?.contract || ""
: parsed?.params.make.assetType?.contract || "";

values.push({
hash: parsed?.params.hash,
target: orderTarget!.toLowerCase(),
maker: order.maker,
created_at: order.createdAt,
data: order as any,
source: "rarible",
});
const orderTarget =
parsed!.params.side === "buy"
? parsed?.params.take.assetType?.contract || ""
: parsed?.params.make.assetType?.contract || "";

values.push({
hash: parsed?.params.hash,
target: orderTarget!.toLowerCase(),
maker: order.maker,
created_at: order.createdAt,
data: order as any,
source: "rarible",
});
}
};

const plimit = pLimit(20);
Expand Down

0 comments on commit de5ab9f

Please sign in to comment.