rename to eventAgreement
This commit is contained in:
@@ -207,14 +207,14 @@ async function verify(input, userId) {
|
|||||||
if (existingItem.eventId !== null && existingItem.agreementId !== '00000000-0000-0000-0000-000000000000') {
|
if (existingItem.eventId !== null && existingItem.agreementId !== '00000000-0000-0000-0000-000000000000') {
|
||||||
const existingAgreement = await agreement.getAgreement(client, userId, existingItem.agreementId);
|
const existingAgreement = await agreement.getAgreement(client, userId, existingItem.agreementId);
|
||||||
const existingAgreementSignatures = await agreement.getSignatures(client, userId, existingItem.agreementId);
|
const existingAgreementSignatures = await agreement.getSignatures(client, userId, existingItem.agreementId);
|
||||||
res.results.validAgreement = validateDidsMatch(auditRecord.signatures, existingAgreementSignatures);
|
res.results.validEventAgreement = validateDidsMatch(auditRecord.signatures, existingAgreementSignatures);
|
||||||
res.results.validAgreementSignature = false;
|
res.results.validEventAgreementSignature = false;
|
||||||
if (validateSignatures(existingAgreement, existingAgreementSignatures, input.didDocs)) {
|
if (validateSignatures(existingAgreement, existingAgreementSignatures, input.didDocs)) {
|
||||||
res.results.validAgreementSignature = true;
|
res.results.validEventAgreementSignature = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
res.results.validAgreement = true;
|
res.results.validEventAgreement = true;
|
||||||
res.results.validAgreementSignature = true;
|
res.results.validEventAgreementSignature = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user