This commit is contained in:
iadgovuser29 2024-06-13 11:06:47 -04:00
parent e8415ded27
commit 7ba391c75a
2 changed files with 1 additions and 2 deletions

View File

@ -17,7 +17,6 @@ import java.util.UUID;
public interface ReferenceManifestRepository extends JpaRepository<ReferenceManifest, UUID> {
ReferenceManifest findByHexDecHash(String hexDecHash);
ReferenceManifest findByEventLogHash(String rimType, String eventLogHash);
ReferenceManifest findByBase64Hash(String base64Hash);
ReferenceManifest findByHexDecHashAndRimType(String hexDecHash, String rimType);
@Query(value = "SELECT * FROM ReferenceManifest WHERE platformManufacturer = ?1 AND platformModel = ?2 AND rimType = 'Base'", nativeQuery = true)

View File

@ -321,7 +321,7 @@ public class SupplyChainValidationService {
deviceName));
} else {
ReferenceManifest manifest = referenceManifestRepository
.findByEventLogHash(sRim.getRimType(), sRim.getEventLogHash());
.findByHexDecHashAndRimType(sRim.getEventLogHash(), sRim.getRimType());
if (manifest instanceof EventLogMeasurements) {
eventLog = (EventLogMeasurements)manifest;
}