Commit aec81fc6 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fixed a bug in update query

parent d9c644e7
......@@ -198,7 +198,7 @@ class SummaryDb(val db: Database) extends Closeable {
/** This create or update a stat */
def createOrUpdateStat(runId: Int, pipelineId: Int, moduleId: Option[Int] = None,
sampleId: Option[Int] = None, libId: Option[Int] = None, content: String): Future[Int] = {
val filter = statsFilter(Some(runId), Some(Left(pipelineId)), Some(Left(moduleId)), Some(Left(sampleId)), Some(Left(libId)))
val filter = statsFilter(Some(runId), Some(Left(pipelineId)), Some(, Some(, Some(
val r = Await.result(, Duration.Inf)
if (r == 0) createStat(runId, pipelineId, moduleId, sampleId, libId, content)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment