From d8c077ec8ee692158059c0a836760033ce57f4e5 Mon Sep 17 00:00:00 2001 From: To-om Date: Tue, 10 Nov 2020 09:30:15 +0100 Subject: [PATCH] #1631 Fix compilation error --- thehive/app/org/thp/thehive/services/AlertSrv.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thehive/app/org/thp/thehive/services/AlertSrv.scala b/thehive/app/org/thp/thehive/services/AlertSrv.scala index 1323b88bc1..5772d21d5f 100644 --- a/thehive/app/org/thp/thehive/services/AlertSrv.scala +++ b/thehive/app/org/thp/thehive/services/AlertSrv.scala @@ -237,7 +237,7 @@ class AlertSrv @Inject() ( graph: Graph, authContext: AuthContext ): Try[RichCase] = - get(alert.alert).`case`.richCase.headOption.getOrElse { + get(alert.alert).`case`.richCase.getOrFail("Case").orElse { for { caseTemplate <- alert