Fix issue with openpgp 5 migration

This commit is contained in:
Yarmo Mackenbach 2022-02-26 00:07:37 +01:00
parent 4708cda222
commit 336f4dd3c9
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -222,10 +222,10 @@ exports.process = async (publicKey) => {
users.forEach((user, i) => { users.forEach((user, i) => {
usersOutput[i] = { usersOutput[i] = {
userData: { userData: {
id: user.userId ? user.userId.userid : null, id: user.userID ? user.userID.userID : null,
name: user.userId ? user.userId.name : null, name: user.userID ? user.userID.name : null,
email: user.userId ? user.userId.email : null, email: user.userID ? user.userID.email : null,
comment: user.userId ? user.userId.comment : null, comment: user.userID ? user.userID.comment : null,
isPrimary: primaryUser.index === i, isPrimary: primaryUser.index === i,
isRevoked: false isRevoked: false
}, },