Fix missing tx in sign cert flow

This commit is contained in:
Carlos Monastyrski
2025-12-02 14:49:24 -03:00
parent dc2d776adc
commit 6772eb5478
@@ -1207,7 +1207,7 @@ export const certificateV3ServiceFactory = ({
tx tx
}); });
const signedCertRecord = await certificateDAL.findById(certResult.certificateId); const signedCertRecord = await certificateDAL.findById(certResult.certificateId, tx);
if (!signedCertRecord) { if (!signedCertRecord) {
throw new NotFoundError({ message: "Certificate was signed but could not be found in database" }); throw new NotFoundError({ message: "Certificate was signed but could not be found in database" });
} }