Skip to content

Commit

Permalink
fix cbor undefined err
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Feb 7, 2025
1 parent 991f1cb commit 4f1d84d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pds/src/sequencer/events.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { z } from 'zod'
import { cborEncode, schema } from '@atproto/common'
import { cborEncode, noUndefinedVals, schema } from '@atproto/common'
import { BlockMap, blocksToCarFile } from '@atproto/repo'
import { AccountStatus } from '../account-manager'
import { CommitDataWithOps } from '../repo'
Expand Down Expand Up @@ -55,7 +55,7 @@ export const formatSeqCommit = async (
return {
did,
eventType: 'append' as const,
event: cborEncode(evt),
event: cborEncode(noUndefinedVals(evt)),
sequencedAt: new Date().toISOString(),
}
}
Expand Down

0 comments on commit 4f1d84d

Please sign in to comment.