Should RIM lookup include rimType?

This commit is contained in:
iadgovuser29 2024-06-13 11:01:33 -04:00
parent 9664056e94
commit e8415ded27
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ import java.util.UUID;
public interface ReferenceManifestRepository extends JpaRepository<ReferenceManifest, UUID> {
ReferenceManifest findByHexDecHash(String hexDecHash);
ReferenceManifest findByEventLogHash(String eventLogHash);
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.getEventLogHash());
.findByEventLogHash(sRim.getRimType(), sRim.getEventLogHash());
if (manifest instanceof EventLogMeasurements) {
eventLog = (EventLogMeasurements)manifest;
}