mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
fix: fix usage of wrong types
This commit is contained in:
parent
53e73afa19
commit
fceb5b6f9b
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -151,7 +151,7 @@ const containsProof = async (data, params) => {
|
|||
method: 'HEAD'
|
||||
})
|
||||
.catch(e => {
|
||||
return false
|
||||
return undefined
|
||||
})
|
||||
|
||||
if (!response) continue
|
||||
|
|
Loading…
Reference in a new issue