mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
fix: Fix selfCertifications order
This commit is contained in:
parent
28a3cb0e9a
commit
d069569b32
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ const process = async (publicKey) => {
|
|||
}
|
||||
|
||||
if ('selfCertifications' in user && user.selfCertifications.length > 0) {
|
||||
const selfCertification = user.selfCertifications[0]
|
||||
const selfCertification = user.selfCertifications.sort((e1, e2) => e2.created - e1.created)[0]
|
||||
|
||||
const notations = selfCertification.rawNotations
|
||||
usersOutput[i].claims = notations
|
||||
|
|
Loading…
Reference in a new issue