Skip to content

Commit

Permalink
#1631 Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Nov 10, 2020
1 parent b50d8bb commit d8c077e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive/app/org/thp/thehive/services/AlertSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8c077e

Please sign in to comment.