Skip to content

Commit

Permalink
Emit "sync" event on account creation through OAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben committed Mar 10, 2025
1 parent 9e3eace commit debf10a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/strong-lions-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@atproto/pds": patch
---

Emit "sync" event on account creation through OAuth
3 changes: 2 additions & 1 deletion packages/pds/src/account-manager/oauth-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { ActorStore } from '../actor-store/actor-store'
import { BackgroundQueue } from '../background'
import { ImageUrlBuilder } from '../image/image-url-builder'
import { ServerMailer } from '../mailer'
import { Sequencer } from '../sequencer'
import { Sequencer, syncEvtDataFromCommit } from '../sequencer'
import { AccountManager } from './account-manager'
import { AccountStatus, ActorAccount } from './helpers/account'
import * as authRequest from './helpers/authorization-request'
Expand Down Expand Up @@ -170,6 +170,7 @@ export class OAuthStore
await this.sequencer.sequenceIdentityEvt(did, handle)
await this.sequencer.sequenceAccountEvt(did, AccountStatus.Active)
await this.sequencer.sequenceCommit(did, commit)
await this.sequencer.sequenceSyncEvt(did, syncEvtDataFromCommit(commit))
await this.accountManager.updateRepoRoot(did, commit.cid, commit.rev)
await this.actorStore.clearReservedKeypair(signingKeyDid, did)

Expand Down

0 comments on commit debf10a

Please sign in to comment.