Skip to content

Commit

Permalink
use correct injector module
Browse files Browse the repository at this point in the history
  • Loading branch information
DonatJR committed Nov 4, 2018
1 parent 4c933ce commit a1c492f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package de.htwg.se.sudoku.model.fileIoComponent.fileIoMongoDBImpl

import com.google.inject.{Guice, Inject}
import com.google.inject.name.{Named, Names}
import de.htwg.se.sudoku.SudokuModule
import de.htwg.se.sudoku.{MongoDBModule, SudokuModule}
import de.htwg.se.sudoku.model.fileIoComponent.FileIOInterface
import de.htwg.se.sudoku.model.gridComponent.GridInterface
import net.codingwell.scalaguice.InjectorExtensions.ScalaInjector
Expand All @@ -29,7 +29,7 @@ class FileIO @Inject()(@Named("MongoDBHost") host: String, @Named("MongoDBPort")
Try {
val json: JsValue = Json.parse(result.head.toJson())
val size = (json \ "grid" \ "size").get.toString.toInt
val injector = Guice.createInjector(new SudokuModule)
val injector = Guice.createInjector(new MongoDBModule)

size match {
case 1 =>
Expand Down

0 comments on commit a1c492f

Please sign in to comment.