forked from Mirrors/doipjs
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) {
|
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
|
const notations = selfCertification.rawNotations
|
||||||
usersOutput[i].claims = notations
|
usersOutput[i].claims = notations
|
||||||
|
|
Loading…
Reference in a new issue