Skip to content

Commit

Permalink
push out empty commit on transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Nov 2, 2023
1 parent a93dcbc commit 54092b8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/pds/src/api/com/atproto/temp/transferAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Server } from '../../../../lexicon'
import AppContext from '../../../../context'
import { check, cidForCbor } from '@atproto/common'
import { InvalidRequestError } from '@atproto/xrpc-server'
import { BlockMap, CidSet } from '@atproto/repo'

export default function (server: Server, ctx: AppContext) {
server.com.atproto.temp.transferAccount({
Expand Down Expand Up @@ -37,6 +38,19 @@ export default function (server: Server, ctx: AppContext) {
throw err
}

await ctx.sequencer.sequenceCommit(
did,
{
cid: currRoot.cid,
rev: currRoot.rev,
since: null,
prev: null,
newBlocks: new BlockMap(),
removedCids: new CidSet(),
},
[],
)

return {
encoding: 'application/json',
body: {
Expand Down

0 comments on commit 54092b8

Please sign in to comment.