Skip to content

Commit

Permalink
chore: change comparison (#4330)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglonghong authored May 25, 2023
1 parent 37cbd57 commit c2e21f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const storeFastPathData = async (bid: Bid, _requestContext: RequestContex

// Enqueue only once to dedup, when the first bid for the transfer is stored.
const execStatus = await cache.auctions.getExecStatusWithTime(transferId);
if (execStatus && execStatus.status === ExecStatus.Sent) {
if (execStatus && execStatus.status !== ExecStatus.None) {
const startTime = Number(execStatus.timestamp);
const elapsed = (getNtpTimeSeconds() - startTime) * 1000;
if (elapsed > config.executionWaitTime) {
Expand All @@ -100,7 +100,7 @@ export const storeFastPathData = async (bid: Bid, _requestContext: RequestContex
elapsed,
waitTime: config.executionWaitTime,
});
status = execStatus.status;
status = execStatus.status as ExecStatus;
}
}
if (status === ExecStatus.None) {
Expand Down

0 comments on commit c2e21f3

Please sign in to comment.