From d349dc8707115e578b67aef380b426d6424c0c03 Mon Sep 17 00:00:00 2001 From: Vincent Debergue Date: Wed, 30 Jun 2021 16:17:38 +0200 Subject: [PATCH] #2089 migration: add missing binding for case number actor --- .../src/main/scala/org/thp/thehive/migration/th4/Output.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migration/src/main/scala/org/thp/thehive/migration/th4/Output.scala b/migration/src/main/scala/org/thp/thehive/migration/th4/Output.scala index 12a8137888..d806072472 100644 --- a/migration/src/main/scala/org/thp/thehive/migration/th4/Output.scala +++ b/migration/src/main/scala/org/thp/thehive/migration/th4/Output.scala @@ -1,6 +1,7 @@ package org.thp.thehive.migration.th4 import akka.actor.ActorSystem +import akka.actor.typed.{ActorRef => TypedActorRef} import akka.actor.typed.Scheduler import akka.stream.Materializer import com.google.inject.{Guice, Injector => GInjector} @@ -63,6 +64,7 @@ object Output { bind[Environment].toInstance(Environment.simple()) bind[ApplicationLifecycle].to[DefaultApplicationLifecycle] bind[Schema].toProvider[TheHiveCortexSchemaProvider] + bind[TypedActorRef[CaseNumberActor.Request]].annotatedWithName("case-number-actor").toProvider[CaseNumberActorProvider] configuration.get[String]("storage.provider") match { case "localfs" => bind(classOf[StorageSrv]).to(classOf[LocalFileSystemStorageSrv]) case "database" => bind(classOf[StorageSrv]).to(classOf[DatabaseStorageSrv])