fix: fix usage of wrong types

This commit is contained in:
Yarmo Mackenbach 2023-05-03 15:33:45 +02:00
parent 53e73afa19
commit fceb5b6f9b
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
2 changed files with 2 additions and 2 deletions

View file

@ -283,7 +283,7 @@ const process = async (publicKey) => {
}
if ('selfCertifications' in user && user.selfCertifications.length > 0) {
const selfCertification = user.selfCertifications.sort((e1, e2) => e2.created - e1.created)[0]
const selfCertification = user.selfCertifications.sort((e1, e2) => e2.created.getTime() - e1.created.getTime())[0]
const notations = selfCertification.rawNotations
usersOutput[i].claims = notations

View file

@ -151,7 +151,7 @@ const containsProof = async (data, params) => {
method: 'HEAD'
})
.catch(e => {
return false
return undefined
})
if (!response) continue