Skip to content

Commit

Permalink
fix: block range search for find missed fill event process (#480)
Browse files Browse the repository at this point in the history
Change block range search for find missed fill event process
  • Loading branch information
melisaguevara authored Aug 27, 2024
1 parent 8e7c9ba commit 87fc26e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { DateTime } from "luxon";

import { FillEventsV3QueueMessage, FindMissedFillEventQueueMessage, ScraperQueue } from ".";
import { InjectRepository } from "@nestjs/typeorm";
import { LessThanOrEqual, Repository } from "typeorm";
import { LessThan, LessThanOrEqual, Repository } from "typeorm";
import { FindMissedFillEventJob, FindMissedFillEventJobStatus } from "../../model/FindMissedFillEventJob.entity";
import { EthProvidersService } from "../../../web3/services/EthProvidersService";
import { AcrossContractsVersion } from "../../../web3/model/across-version";
Expand Down Expand Up @@ -47,7 +47,7 @@ export class FindMissedFillEventConsumer {

const maxFillDate = DateTime.fromJSDate(j.depositDate).plus({ hours: 24 }).toJSDate();
const fromBlock = await this.blockRepository.findOne({
where: { chainId: j.destinationChainId, date: LessThanOrEqual(j.depositDate) },
where: { chainId: j.destinationChainId, date: LessThan(j.depositDate) },
order: { date: "DESC" },
});
const toBlock = await this.blockRepository.findOne({
Expand Down

0 comments on commit 87fc26e

Please sign in to comment.