Skip to content

Commit

Permalink
fix api deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Faithcaio committed Mar 24, 2018
1 parent 7958ae0 commit d2afe93
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/controllers/ApiController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,14 @@ final class ApiController @Inject()(api: OreRestfulApi,
}
}

projectData.project.owner.user.flatMap(upload)
for {
user <- projectData.project.owner.user
orga <- user.toMaybeOrganization
owner <- orga.map(_.owner.user).getOrElse(Future.successful(user))
result <- upload(owner)
} yield {
result
}
}
}
dep.flatten
Expand Down

0 comments on commit d2afe93

Please sign in to comment.