Emit "sync" event on account creation through OAuth ()

This commit is contained in:
Matthieu Sieben 2025-03-10 15:19:25 +01:00 committed by GitHub
parent 9e3eace8f9
commit 0ae7f416e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions
.changeset
packages/pds/src/account-manager

@ -0,0 +1,5 @@
---
"@atproto/pds": patch
---
Emit "sync" event on account creation through OAuth

@ -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'
@ -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)