fix: Fix selfCertifications order

This commit is contained in:
Yarmo Mackenbach 2023-03-28 13:05:39 +02:00
parent 28a3cb0e9a
commit d069569b32
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

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