Skip to content

Commit

Permalink
fix: avoid looping
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeroman committed Mar 4, 2024
1 parent 6bb382d commit ee9158d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobs/element-sync/queues/backfill-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if (config.doBackfillWork) {

// If there are more order within th given time frame
if (cursor >= startTime) {
job.data.newEndTime = cursor === endTime ? cursor - 1 : cursor;
job.data.newEndTime = cursor >= endTime ? endTime - 1 : cursor;
}
} catch (error) {
logger.error(
Expand Down

0 comments on commit ee9158d

Please sign in to comment.