Skip to content

Commit

Permalink
fixup! 14609: findDetailedDeliveryHistory handles actions that produc…
Browse files Browse the repository at this point in the history
…e multiple reports
  • Loading branch information
mkalish committed Oct 10, 2024
1 parent e93788d commit 0d4887f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prime-router/src/main/kotlin/history/azure/DeliveryFacade.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import java.util.*
*/
class DeliveryFacade(
private val dbDeliveryAccess: DatabaseDeliveryAccess = DatabaseDeliveryAccess(),
val dbAccess: DatabaseAccess = BaseEngine.databaseAccessSingleton,
private val dbAccess: DatabaseAccess = BaseEngine.databaseAccessSingleton,
val reportService: ReportService = ReportService(),
) : ReportFileFacade(
dbAccess
Expand Down Expand Up @@ -99,6 +99,8 @@ class DeliveryFacade(
id: String,
deliveryId: Long,
): DeliveryHistory? {
// This functionality is handling the fact that the calling function supports loading the history either
// by the action id or report id
val reportFileId = try {
UUID.fromString(id)
} catch (ex: IllegalArgumentException) {
Expand Down

0 comments on commit 0d4887f

Please sign in to comment.