Skip to content

Commit

Permalink
#1670 Fix circular dependency in tag/taxonomy
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Mar 2, 2021
1 parent da6cd83 commit b056e99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions thehive/app/org/thp/thehive/services/TagSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ import org.thp.thehive.models._
import org.thp.thehive.services.OrganisationOps._
import org.thp.thehive.services.TagOps._

import javax.inject.{Inject, Named, Singleton}
import javax.inject.{Inject, Named, Provider, Singleton}
import scala.util.matching.Regex
import scala.util.{Success, Try}

@Singleton
class TagSrv @Inject() (
organisationSrv: OrganisationSrv,
taxonomySrv: TaxonomySrv,
taxonomySrvProvider: Provider[TaxonomySrv],
appConfig: ApplicationConfig,
@Named("integrity-check-actor") integrityCheckActor: ActorRef
) extends VertexSrv[Tag] {
lazy val taxonomySrv: TaxonomySrv = taxonomySrvProvider.get

val taxonomyTagSrv = new EdgeSrv[TaxonomyTag, Taxonomy, Tag]
private val freeTagColourConfig: ConfigItem[String, String] =
Expand Down

0 comments on commit b056e99

Please sign in to comment.