Skip to content

Commit

Permalink
Merge 156b4a2 into 0b109cd
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Dec 27, 2022
2 parents 0b109cd + 156b4a2 commit 3ce7f60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions identity/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ type Identity struct {
// ---
// x-omitempty: true
// ---
VerifiableAddresses []VerifiableAddress `json:"verifiable_addresses,omitempty" faker:"-" has_many:"identity_verifiable_addresses" fk_id:"identity_id"`
VerifiableAddresses []VerifiableAddress `json:"verifiable_addresses,omitempty" faker:"-" has_many:"identity_verifiable_addresses" fk_id:"identity_id" order_by:"id asc"`

// RecoveryAddresses contains all the addresses that can be used to recover an identity.
//
// Extensions:
// ---
// x-omitempty: true
// ---
RecoveryAddresses []RecoveryAddress `json:"recovery_addresses,omitempty" faker:"-" has_many:"identity_recovery_addresses" fk_id:"identity_id"`
RecoveryAddresses []RecoveryAddress `json:"recovery_addresses,omitempty" faker:"-" has_many:"identity_recovery_addresses" fk_id:"identity_id" order_by:"id asc"`

// Store metadata about the identity which the identity itself can see when calling for example the
// session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field.
Expand Down
8 changes: 0 additions & 8 deletions persistence/sql/persister_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,14 +458,6 @@ func (p *Persister) GetIdentity(ctx context.Context, id uuid.UUID) (*identity.Id

i.Credentials = nil

if err := p.findVerifiableAddresses(ctx, &i); err != nil {
return nil, sqlcon.HandleError(err)
}

if err := p.findRecoveryAddresses(ctx, &i); err != nil {
return nil, sqlcon.HandleError(err)
}

if err := p.injectTraitsSchemaURL(ctx, &i); err != nil {
return nil, err
}
Expand Down

0 comments on commit 3ce7f60

Please sign in to comment.