Skip to content

Commit

Permalink
fix: order by
Browse files Browse the repository at this point in the history
  • Loading branch information
alnr committed Nov 7, 2024
1 parent 657fea5 commit 57b5fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion persistence/sql/identity/persister_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ func QueryForCredentials(con *pop.Connection, where ...Where) (credentialsPerIde
).LeftJoin(identifiersTableNameWithIndexHint(con),
"identity_credential_identifiers.identity_credential_id = identity_credentials.id AND identity_credential_identifiers.nid = identity_credentials.nid",
).Order(
"identity_credentials.id ASC",
"identity_credential_identifiers.identifier ASC",
)
for _, w := range where {
q = q.Where("("+w.Condition+")", w.Args...)
Expand Down

0 comments on commit 57b5fe9

Please sign in to comment.