Skip to content

Commit

Permalink
make tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Oct 4, 2023
1 parent 2ee83f9 commit 9de92a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/pds/src/api/com/atproto/sync/subscribeRepos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function (server: Server, ctx: AppContext) {
message: 'Requested cursor exceeded limit. Possibly missing events',
}
const startEvt = await ctx.sequencer.earliestAfterTime(backfillTime)
outboxCursor = startEvt?.seq ?? undefined
outboxCursor = startEvt?.seq ? startEvt.seq - 1 : undefined
} else {
outboxCursor = cursor
}
Expand Down
4 changes: 2 additions & 2 deletions packages/pds/src/sequencer/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export class Sequencer extends (EventEmitter as new () => SequencerEmitter) {
.selectFrom('repo_seq')
.selectAll()
.where('seq', 'is not', null)
.where('sequencedAt', '>', time)
.where('sequencedAt', '>=', time)
.orderBy('sequencedAt', 'asc')
.limit(1)
.orderBy('sequencedAt', 'desc')
.executeTakeFirst()
return got || null
}
Expand Down

0 comments on commit 9de92a8

Please sign in to comment.